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

Answer Posted / subbu

1st Query Output is:

SQL> select * from Emp where null = null;

no rows selected

2nd Query Output is:

All the rows and columns of emp table

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a synonym name of a table be used instead of a table name in a select statement?

581


How to delete existing triggers using "drop trigger"?

561


Determine how to use the inserted and deleted pseudo tables?

543


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

542


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

577






What is after dml trigger?

578


What are the different types of replication are there in sql server 2000?

568


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

512


How many cores do I need for sql server 2016?

509


What do you know about normalization and de- normalization?

473


What is a rollup clause?

548


You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?

489


Explain the phases a transaction has to undergo?

558


Explain what is lock escalation?

581


How to find the service pack installed? : sql server database administration

554