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

Answer Posted / radhakrishnan

a) first statement return only table structure (with out
data)
Eg: empid empname

b) second statement return the structure with data.

Eg: empid empname
101 radha
102 krishnan

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the partitioning method?

528


Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

523


What is the Disadvantage of indexed sequential file.

616


Do you know query execution plan?

586


How many levels of sp nesting is possible?

580






Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?

574


What is the difference between set and select?

570


where the connection string store in the database

1524


what is sql server? : Sql server database administration

532


Explain about system database?

578


How to join two tables in a single query in ms sql server?

537


What is sql server locking?

551


how will add additional conditions in sql?

572


Explain error and transaction handling in sql server?

497


Why we should not use triggers?

534