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

Answer Posted / anitha

select * from emp where null=null: will not return any rows
in the table since two null values are not always same.

select * from emp where 1=1 : will return all the rows in
the table because 1 is always equal to 1.

Is This Answer Correct ?    36 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of owner option in exp command.

782


What is meant by joins? List out the types of joins.

723


What is SQL access advisor in Oracle?

863


Why do we need oracle client?

691


What is rowid and rownum in oracle?

773


What is the sql query to concatenate column values from multiple rows in oracle?

809


What types of joins are used in writing subqueries?

749


How to invoke the data pump import utility?

837


Explain an index?

887


How to calculate date and time differences in oracle?

767


How to install oracle database 10g xe?

779


How to bring a tablespace offline?

751


How to run create database statement again?

821


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

878


Differentiate between post-database commit and post-form commit?

785