updated query 3 of s5 since we're supposed to update city column of employee table and not company

This commit is contained in:
Tanmay 2024-11-09 20:38:30 +05:30
parent 9a7978235b
commit 4a934c1bbd

View File

@ -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 3. Change the city of employee working with InfoSys to Bangalore
```sql ```sql
UPDATE Company SET city = "Bangalore" WHERE company_name = "Infosys"; update Employee set city = "Banglore" where employee_name in (select employee_name from Works where company_name = "Infosys");
SELECT * FROM Company; select * from Employee;
``` ```