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

How to create an initialization parameter file?

535


How to use values from other tables in update statements using oracle?

564


What is the quickest way to export a table to a flat file?

568


Can you tell me how to add new column in existing views?how?How is possible?

929


What are advantages of dateset in datastage?

1744






how to code performance tuning of oracle PL/SQL? can any body send me the perfect answer?

4665


What is merge statement used for?

563


what is Single Byte Overhead...?

2058


What are the advantages of oracle 12c?

553


what are bitmap indexes? How does they work?

1716


How to best split csv strings in oracle 9i?

584


What is oracle data type?

553


Explain how are indexes update?

619


what is the use of system.effective.date variable in oracle?

671


How to estimate disk space needed for an export job?

558