Multiple choice

Which SQL statement is used to extract data from a table?

  1. Select

  2. Display

  3. Get

  4. Describe

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Select statement is used to extract or display data of a table. Using a Select statement, a table can be printed either fully or partially. We can also add a condition so that only those records that fit the criteria can be displayed. Example: To print all the columns of a table the command will be Select * from tablename where * denotes that all the columns have to be printed. In case we want to print only selected columns we can replace * with the column names as select rollno, name from students. To add a condition, the where clause can be added to the select statement Select rollno, name from students where rollno=1.