what is the output of select * from emp where null=null &
select * from emp where 1=1

Answer Posted / anee desai

first command will give no records whereas 2nd command will
provide all records as 1 is equal to one.it is similar to
select * from emp;.if 2=2 will also provide the same
result.it makes no sense in writing 1=1;

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is system global area (sga) in oracle?

576


How do you store pictures in a database?

563


What is object data modeling?

507


What are operators in oracle?

532


how may join possible between (requisition with purchase order)

1699






What is the difference between formal parameters and actual parameters?

546


What happens if the update subquery returns multiple rows?

611


Explain the difference between a procedure and a function? What do you understand by those terms?

624


How to drop a stored procedure in oracle?

592


What is the difference between hot backup and cold backup in oracle?

520


You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?

1459


What is sharded cluster?

520


How to drop an index in oracle?

609


What is save point in oracle database?

729


How to apply filtering criteria at group level in oracle?

587