Skip to main contentSkip to solution

For the given table 'STUDENT':

S_idNAMESTREAMMARKSSECTION
1AshuScience90A
2AjayEnglish80B
3RichaHistory85C
4RajeevScience79A
5ArunScience88B
6RuchiEnglish78C

What will be the command to select information of all Science students from the table 'STUDENT'?

Solution

✅ Correct Option: 3

SELECT * returns all columns, and WHERE STREAM = 'Science' keeps only the rows whose STREAM is Science. Together they give the complete information (S_id, NAME, STREAM, MARKS, SECTION) of Ashu, Rajeev and Arun.


Option 1: no WHERE clause, so it returns all 6 students, not just Science.

Option 2: it returns only the STREAM column, not all the information, and the string 'Science is missing its closing quote.

Option 4: it filters correctly but returns only the NAME column, not the full details.

Keyboard Shortcuts

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