Consider the following relation:
STUDENT(RollNumber, SName,SDateofBirth ,GUID)
Which of the SQL Command is correct to update the GUID to 501 for the student having roll no 13?
Consider the following relation:
STUDENT(RollNumber, SName,SDateofBirth ,GUID)
Which of the SQL Command is correct to update the GUID to 501 for the student having roll no 13?
Solution
✅ Correct Option: 2
The correct syntax is . Option 2 follows it: the table name comes right after UPDATE, SET assigns the new value to GUID, and the WHERE clause uses the comparison operator = to select the row with RollNumber 13.
Option 1: the WHERE clause has no comparison operator between RollNumber and 13.
Option 3: the SET keyword is missing.
Option 4: UPDATE does not take FROM (that belongs to SELECT and DELETE).
Related questions:
2025: 13 May Shift 2
2025: 13 May Shift 2
2025: 13 May Shift 2
2026: 11 May Shift 2