what is the out put of below queries?
a. select * from Emp where null = null;
b. select * from Emp where 1=1;

Answer Posted / anil patel

a. select * from Emp where null = null;

null= null is always false os no rows returns.

b. select * from Emp where 1=1;

it returns all rows

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

after migrating the dts packg to ssis by using migrtn wizrd in 2005. iam not able to open ssis pack and getting error. what r those errors? how to resolve?

1770


What is stretch database in sql server?

655


How can I add Reporting Services reports to my application?

97


What is single-user mode?

601


Comment,Datatypes are unlimited

1722






What is the difference between migration and upgradation in sql server?

685


System requirements for sql server 2005 express edition?

636


What is user-defined scalar function?

635


How to use old values to define new values in update statements in ms sql server?

758


What do you mean by an execution plan?

668


What is an index. What are the types?

656


What are the differences between web role and worker role?

108


What is the maximum rows in sql server table?

599


role of sql sever 2005 in database rather than any other database

1593


What is merge statement?

699