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 / ramesh

compilation error, because you should not use two times end
if;

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different type of joins in sql?

530


Can we use having without group by in sql?

535


Why are sql stored procedures used?

603


how to use like conditions? : Sql dba

564


What is using in sql?

549






Which are sql * plus commands?

529


What are different types of sql?

547


what happens if you no create privilege in a database? : Sql dba

519


What are string functions in sql?

663


what is commit? : Sql dba

605


How to start oracle sql developer?

550


What is output spooling in sql*plus?

537


When sql appeared?

606


how can you create an empty table from an existing table? : Sql dba

646


What is serial sql?

509