Structured Query Language (SQL) · Class 12 · CBSE · Science Computer Science

Which SQL query correctly adds a column named Email to the STUDENT table?

Practice question from Structured Query Language (SQL) (Class 12 · CBSE · Science Computer Science), with the correct answer and a step-by-step solution.

easy · MCQ · Q-F2FF44

Which SQL query correctly adds a column named Email to the STUDENT table?

  1. A.ALTER TABLE STUDENT ADD COLUMN Email VARCHAR(50);Correct answer
  2. B.UPDATE STUDENT ADD Email VARCHAR(50);
  3. C.INSERT COLUMN Email VARCHAR(50) INTO STUDENT;
  4. D.MODIFY STUDENT ADD Email VARCHAR(50);

Solution

The ALTER TABLE command is used to modify the structure of an existing table. The ADD COLUMN clause adds the Email column with a VARCHAR(50) data type.

More from Structured Query Language (SQL)

All of Structured Query Language (SQL)

Practise more Computer Science

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed