Skip to main contentSkip to solution

Identify the syntactically correct SQL query in order to insert a record in the table 'STUDENT' having attributes as admission_no, name, marks.

Solution

✅ Correct Option: 2

The standard syntax is INSERT INTO table_name VALUES (v1, v2, ...)\text{INSERT INTO table\_name VALUES (v1, v2, ...)}. When no column list is given, the values must follow the table's column order (admission_no, name, marks). Option 2 follows this syntax exactly, with the keyword VALUES.


Option 1: the values are placed where the column list belongs, and the VALUES keyword is missing.

Option 3: the keyword VALUES is missing before the value list. Listing the columns is allowed, but VALUES must still follow.

Option 4: the keyword is VALUES, not VALUE.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question