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

Answer Posted / samir kumar sahoo

select*from emp where null=null;

this command will not return any record bcoz the
condition null=null false as two null values are not equal.


select*from emp where 1=1;

will return all the records present in the table emp as
the condition 1=1 is always true.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a lookup table in oracle?

754


What suggestions do you have to reduce the network traffic?

738


For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?

1779


How to insert a record into a table?

852


How to add a new column to an existing table in oracle?

870


How to retrieve values from data fields in record variables?

807


What is the relation of a user account and a schema in oracle?

860


Point out the difference between user tables and data dictionary?

771


How to open a cursor variable?

807


What happens in oracle commit?

780


WHAT IS ecc 6.0

1932


State the various uses of dbcc command?

804


What is rich query?

735


How different is ms access and oracle?

779


How to resolve name conflicts between variables and columns?

812