Home » MYSQL » Where Clause » Question
  1. What will be the output of the query given below?
    SELECT Student_id, FirstName, LastName
    FROM Student
    WHERE title=’Monitor’ AND start_date=2017-02-25;
    1. Only those columns which are mention with “SELECT” clause
    2. Columns mention with “SELECT” clause and only those rows which contain ‘Monitor’ as a “title” and start_date as 2017-02-25
    3. All columns
    4. All of above
    5. None of these
Correct Option: B

“WHERE” clause is used to filter out unwanted rows and “SELECT” clause is used to select columns from table.



Your comments will be displayed only after manual approval.