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 / subrahmanyam.k

Null is not a charcter,unapplicable and not space. we can't
applicable or compare to another. so the final output is "ELSE"

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are string functions in sql?

663


How can you tell the difference between an index and a view?

478


Why is sql*loader direct path so fast?

586


Can we perform dml in function?

579


How can you load multi line records? : aql loader

644






What is percent sign in sql?

701


Is id a reserved word in sql?

642


Why left join is used in sql?

507


What is attribute indicator in pl sql?

510


What is the main difference between sql and pl/sql?

551


What is the purpose of my sql?

491


What is the usage of the distinct keyword?

666


What is keys and its types?

526


how to enter binary numbers in sql statements? : Sql dba

481


Why function is used in sql?

507