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

How to drop an index in oracle?

621


How to use select statement to count the number of rows in oracle?

564


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

585


How does the on-delete-cascade statement work?

619


How do I connect to oracle database?

550






What is an oracle function?

610


Can select statements be used on views in oracle?

600


How to sort the query output in oracle?

625


What does sharding mean?

555


How to filter out duplications in the returning rows using oracle?

652


What are the major difference between truncate and delete?

527


Give the various rollback segment states.

590


What is a proxy object?

594


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

948


How to define and use table alias names in oracle?

518