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

Do you know the different ddl commands in sql?

593


What is the default fill factor value?

587


Explain trigger and its types?

618


What is an index. What are the types?

587


What the different types of Replication and why are they used?

546






In which format does an image save in SQL Server database ?

597


What are information schema views?

559


What are cursors stored procedures and triggers?

524


What is the order in which the sql query is executed?

529


Explain what are the database objects? : SQL Server Architecture

574


What do you understand by mirroring and mention the advantages of the mirroring?

584


Differentiate between mongodb vs. Sql server?

587


Can you move the resources after pausing the node? : sql server database administration

597


What are the parts of a function?

524


How to identify current user in ssrs report?

242