Will the following query fetch all records from tab table?
Select * from tab where b='a'
UNION 
Select * from tab where b<>'a'
Explanation
NULL value is not covered by any of the queries.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
SQL quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes