PUZZLE – 2 – Queries

Posted on : 01-07-2011 | By : Devi Prasad | In : Puzzles

Share:

1


What is the output of each statement in the below query:

SELECT 1 WHERE NULL = NULL

SELECT COUNT(10)

SELECT COUNT(C1) FROM (SELECT 'A' AS C1 UNION ALL SELECT 'B' UNION ALL SELECT NULL) T

SELECT NULL
UNION
SELECT NULL

Please provide your comments.

(Visited 76 times, 1 visits today)



References : Devi Prasad (sqlserverlearner.com)

Need Help On SQL Server?

Cannot Find Solution to your problem (or) If you are looking for some help on SQL Server. Dont worry Click Here to Post your question and solve your issue.


Do you like my blog?

If you liked reading this blog, please help spread the word by sharing this blog with your friends.




Comments (1)

i got answers like
1. no coloumn
2.1
3.2
4.NULL

i want explanation for dis queries .

Write a comment