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

Answer Posted / phani

In First case it will not return any rows. only the colum
names will be displayed.

In the second case all the records that are available in
the table will be displayed.

Is This Answer Correct ?    61 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between rownum and row_number?

514


What are the different authentication modes in sql server? How can it be changed?

565


Explain the difference between cross join and full outer join?

497


Does order by actually change the order of the data in the tables or does it just change the output?

655


What is the difference between indexing and hashing?

542






Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

611


What is a non equi join?

539


How do you migrate data from mssql server to azure?

151


What are the different types of triggers in SQL SERVER?

537


What is scd (slowly changing dimension)? : sql server analysis services, ssas

590


Is sql server implemented as a service or an application? : Sql server database administration

509


Explain transaction server auto commit?

531


What is standby servers? Explain types of standby servers.

509


Issues related in upgrading SQL Server 2000 to 2005 / 2008

1499


Why truncate is ddl command?

512