Where Clause


  1. In the following query “person_id” can be
    SELECT Emp_id, fname,Lname, Birth_date FROM Employee
    WHERE Emp_id=101;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Primary Key or any other Attribute


  1. What will be the output of the query given below?
    SELECT *
    FROM Student
    WHERE title=’Monitor’;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    “WHERE” clause is used to filter out unwanted rows therefore in above query only those rows will be selected which contain title as ‘Monitor’.



  1. What will be the output of the query given below?
    SELECT *
    FROM Student
    WHERE (title=’Monitor’) AND (start_date=2019-01-25);











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    “WHERE” clause is used to filter out unwanted rows therefore in above query only those rows will be selected which contain title as ‘Monitor’ and start_date 2019-01-25.


  1. What will be the output of the query given below?
    SELECT *
    FROM Army
    WHERE (title=’Sergeant’) OR (start_date=1995-03-20);











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    “WHERE” clause is used to filter out unwanted rows therefore in above query only those rows will be selected which contain title as ‘Sergeant’ or start_date 1995-03-20.



  1. What will be the output of the query given below?
    SELECT *
    FROM Army
    WHERE (title=’Sergeant ’) AND (start_date > 1995-03-20);











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    “WHERE” clause is used to filter out unwanted rows therefore in above query only those rows will be selected which contain title as ‘Sergeant ’ and start_date is greater than 1995-03-20.