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(9229430059)

A. Will give you no record because null have no value that
means no comparision between two nulls.

B.will give all row because 1=1 condision always true for
all rows.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how you can configure a running aggregate in SSRS?

125


How many columns can we include on clustered index ?

582


Define self join?

714


How to see the event list of an existing trigger using sys.trigger_events?

666


How do you set a trace flag in sql server?

653






Difference between Sql server reporting services and Crystal reports?

132


What do you mean by the term 'normalization'?

763


What are the advantages of user-defined functions over stored procedures in sql server?

549


How to use linked server?

697


what are the disadvantages of cursors? : Sql server database administration

591


Explain what is meant by replication of database?

620


what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

597


Mention the command used to rename the database.

628


What is the simplest way to create a new database in ms sql server?

625


What are constraints?

687