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

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

626


Can we convert a date to char in oracle and if so, what would be the syntax?

554


What are the advantages of oracle?

555


How to unlock the sample user account in oracle?

561


How to retrieve data from an cursor to a record?

565






WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?

1806


What is Undo Management Advisor in Oracle?

618


How do we get field detail of a table?

631


How to do clean up if create database failed?

578


How to drop a stored procedure in oracle?

592


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

528


What query tells you how much space a tablespace named test is taking up, and how much space is remaining?

1814


What are the different types of failures that occur in Oracle database?

606


what is the use of triggers in Java program? I mean where do we use triggers in Java programming?

1701


What is format trigger?

1623