--:--









Quiz for Filtering with WHERE

Course: SQL | Subject: SQL | Topic: Data Query Language (DQL)



Logo

Q1: What does the WHERE clause do in a SQL SELECT statement?

Logo

Q2: Which of the following returns rows where the salary is greater than 5000?

Logo

Q3: What does the BETWEEN operator do?

Logo

Q4: Which operator is used to test for multiple values in a WHERE clause?

Logo

Q5: How do you filter names starting with "A"?

Logo

Q6: What does the LIKE "%son" do in SQL?

Logo

Q7: What is the result of using NOT IN in a WHERE clause?

Logo

Q8: Which condition correctly checks for NULL values?

Logo

Q9: How to filter employees not named "John"?

Logo

Q10: Which query filters employees with salary between 3000 and 6000?

Logo

Q11: What is the output of: WHERE 1=1?

Logo

Q12: Which operator is used to match part of a string?

Logo

Q13: Which keyword can combine multiple WHERE conditions?

Logo

Q14: Which condition finds employees with salary not between 4000 and 7000?

Logo

Q15: What does this query return? SELECT * FROM emp WHERE dept_id IS NOT NULL;

Logo

Q16: How do you filter rows where name ends with "n"?

Logo

Q17: Which operator works as a wildcard for one character?

Logo

Q18: Which statement excludes employees with dept_id = 5?

Logo

Q19: Which operator checks if a value exists in a subquery?

Logo

Q20: What does this query do: SELECT * FROM emp WHERE name LIKE "_a%";

Are you ready to start test? Set your time limit