what is the out put of below queries?
a. select * from Emp where null = null;
b. select * from Emp where 1=1;
Answer Posted / nitin yadav(nitin.yadav.india@
u can not compare two nulls
null means nothing.so
ANS 1:no row
ANS 2:All row (because of 1=1 is always true for all rows)
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the advantages of partitioning?
when you create a database how is it stored? : Sql server database administration
When columns are added to existing tables, what do they initially contain?
How can you set the threshold at which sql server will generate keysets asynchronously?
How is sql used in sql server?
What is the fastest way to permanently delete a 1 million row table named customers?
what is denormalization and when would you go for it? : Sql server database administration
How do you create type- insensitive operator?
How to divide query output into multiple groups with the group by clause in ms sql server?
In how many ways you can invoke ssrs reports?
Does group by sort data?
What is set nocount on?
What is a file group?
What are commonly used odbc functions in php?
What is a transact-sql statement?