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

Answer Posted / m@ngesh

in the first query There is no records to show in output
box only show the column name Like empname, city, address
etc..
and the second query say that there is all records are to
be show.when query (1=1) will be satisfied on the table

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of stored procedures?

661


Where is my database stored on the hard disk in ms sql server?

686


Explain collation?

696


What is the minimum recommended amount of ram for sql server 2012 enterprise?

599


What are the steps to follow to configure SQL*Net?

654






What is join query?

587


What is the language structure to add a record to a table?

665


What is difference between aggregate and analytic function?

570


What are the advantages of using stored procedures in sql server?

587


What is a not null constraint?

676


Explain security with sql azure?

165


How many categories of data types used by sql server?

677


What is dknf in normalization form?

655


What is table level trigger?

667


which table keeps the locking information? : Sql server administration

632