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


Please Help Members By Posting Answers For Below Questions

What is not null constraint?

622


What functions can a view be used to performed?

626


We need to perform what steps in the following order to work with a cursor?

712


What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?

606


Explain the steps needed to create a scheduled job?

525






What is the purpose of forms?

498


Is the primary key column of a table an index in ms sql server?

539


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2118


How many joins in sql server?

518


What is dirty page?

568


How to enforce security in sql server? : sql server security

623


What do you know about normalization and de- normalization?

468


Explain the different types of joins?

572


What are the basic features of a trigger in ms sql server?

569


What are indexes in sql?

580