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 character functions in sql?

494


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

2567


Can you join a table to itself?

540


what is index? : Sql dba

556


Is left join same as inner join?

535






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

504


What is pl/sql table? Why is it used?

559


What is equi join in sql?

608


What is difference between pl and sql?

528


What does where 1 1 mean in sql?

541


What is sql*loader and what is it used for?

579


How can we make an if statement within a select statement?

539


How can I tell if sql is running?

584


How many scalar data types are supported in pl/sql?

518


What plvcmt and plvrb does in pl/sql?

874