declare
l1 number := null;
l2 number :=null;
begin
if l1=l2 then message('equal');
else
if l1<>l2 then message('not equal');
else
message('else');
end if;
end if;
end;
What will be the output ?

Answer Posted / arup ratan banerjee

The answer will be "not equal"
because when two null values are compared then it Returns
False.

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define overloaded procedure?

616


What is indexes?

533


What are triggers and its uses?

585


What are the subsets of sql?

541


How long will it take to learn pl sql?

516






How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

588


Is ms sql is free?

523


How to raise user-defined exception with custom sqlerrm ?

671


Which sql statement is used to return only different values?

494


explain normalization concept? : Sql dba

577


How can you get sql*loader to commit only at the end of the load file? : aql loader

541


what's the difference between a primary key and a unique key? : Sql dba

498


What is difference between procedure and trigger?

506


Is full outer join same as cross join?

495


How does postgresql compare to "nosql"?

567