updated query 3 of s5 since we're supposed to update city column of employee table and not company
This commit is contained in:
parent
9a7978235b
commit
4a934c1bbd
@ -115,8 +115,8 @@ SELECT company_name, employee_name FROM Works ORDER BY company_name ASC, employe
|
||||
|
||||
3. Change the city of employee working with InfoSys to ‘Bangalore’
|
||||
```sql
|
||||
UPDATE Company SET city = "Bangalore" WHERE company_name = "Infosys";
|
||||
SELECT * FROM Company;
|
||||
update Employee set city = "Banglore" where employee_name in (select employee_name from Works where company_name = "Infosys");
|
||||
select * from Employee;
|
||||
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user