SQL
Which of t ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Which of the following queries will return all records from table T?
SELECT * FROM T WHERE NULL = NULL;
SELECT * FROM T WHERE NULL <> NULL;
SELECT * FROM T WHERE NULL != NULL;
SELECT * FROM T WHERE NULL IS NULL;
SELECT * FROM T WHERE NULL IS NOT NULL;
Explanation
NULL values should be compared using IS NULL and IS NOT NULL operators.
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
S
QL
Quiz
Login to learn SQL
or
Read more about
SQL Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment