Comparison Operators in SQL are used to compare values in queries. They return Boolean results (TRUE, FALSE, or UNKNOWN) and are most commonly used in WHERE, HAVING, and JOIN conditions.
Time limit: 0
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
What is the result of this condition: WHERE salary > 50000?
Correct
Incorrect
Question 3 of 15
3. Question
Which operator checks for inequality in SQL?
Correct
Incorrect
Question 4 of 15
4. Question
What does the <= operator check for?
Correct
Incorrect
Question 5 of 15
5. Question
What will SELECT * FROM employees WHERE age < 30; return?
Correct
Incorrect
Question 6 of 15
6. Question
Which operator is used to compare if a column value falls within a range?
Correct
Incorrect
Question 7 of 15
7. Question
What is the result of SELECT * FROM items WHERE price BETWEEN 100 AND 200;?
Correct
Incorrect
Question 8 of 15
8. Question
Which of the following returns true if the column matches any value in the list?
Correct
Incorrect
Question 9 of 15
9. Question
What does WHERE name != ‘John’ do?
Correct
Incorrect
Question 10 of 15
10. Question
How does LIKE differ from = in SQL?
Correct
Incorrect
Question 11 of 15
11. Question
What does the % symbol mean in a LIKE clause?
Correct
Incorrect
Question 12 of 15
12. Question
What is the result of WHERE id IN (1, 2, 3)?
Correct
Incorrect
Question 13 of 15
13. Question
What does WHERE score >= 60 mean?
Correct
Incorrect
Question 14 of 15
14. Question
Which operator would you use to check if two columns are not equal?
Correct
Incorrect
Question 15 of 15
15. Question
What does IS NULL check for?
Correct
Incorrect
Summary
This quiz covers essential SQL comparison operators like =, !=, <, >, BETWEEN, IN, and LIKE, helping beginners understand how to filter and match data effectively in queries.
At QuizOrbit, our team specializes in fun, informative quizzes across topics like general knowledge, technology, and entertainment. Boost your knowledge with our expert-designed quizzes.