Given the following relation S(SNO,SNAME,CITY) write a query to update the value of CITY to KANPUR for the supplier S1
Answer: C
Correct answer: UPDATE S SET CITY = KANPUR WHERE SNO=S1
The UPDATE statement has a fixed shape: UPDATE table SET column = value WHERE condition. SET is required before the assignment and WHERE before the condition; FOR and RENAME have no place in it.
Please log in or register to report this question.