From 4a934c1bbd4870108f23da2120c209329bdde6c7 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Sat, 9 Nov 2024 20:38:30 +0530 Subject: [PATCH] updated query 3 of s5 since we're supposed to update city column of employee table and not company --- Practical/Practical Exam/SQL/S5 - SQL Queries.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Practical/Practical Exam/SQL/S5 - SQL Queries.md b/Practical/Practical Exam/SQL/S5 - SQL Queries.md index 6c53ee8..6c7652a 100644 --- a/Practical/Practical Exam/SQL/S5 - SQL Queries.md +++ b/Practical/Practical Exam/SQL/S5 - SQL Queries.md @@ -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; ```