Where Clause
- In the following query “person_id” can be
SELECT Emp_id, fname,Lname, Birth_date FROM Employee
WHERE Emp_id=101;
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Primary Key or any other Attribute
- What will be the output of the query given below?
SELECT *
FROM Student
WHERE title=’Monitor’;
-
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’.
- What will be the output of the query given below?
SELECT *
FROM Student
WHERE (title=’Monitor’) AND (start_date=2019-01-25);
-
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.
- What will be the output of the query given below?
SELECT *
FROM Army
WHERE (title=’Sergeant’) OR (start_date=1995-03-20);
-
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.
- What will be the output of the query given below?
SELECT *
FROM Army
WHERE (title=’Sergeant ’) AND (start_date > 1995-03-20);
-
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.