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

The message() function has not been declared in the block.
If it would have been declared then answer would be 'ELSE'

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between subquery and correlated query?

532


Explain the difference between drop and truncate commands in sql?

538


Why we use stored procedure instead of query?

540


What do you understand by case manipulation functions?

547


Is primary key is clustered index?

533






what are the differences among rownum, rank and dense_rank? : Sql dba

542


How to take user input in pl sql?

705


How many sql statements are used?

570


What is rename command in sql?

469


How to change the order of columns in Oracle SQL Plus ?

616


Is mariadb nosql?

586


define join and explain different type of joins? : Sql dba

548


What are the different types of joins in sql?

585


Is sql free?

501


What is sqlerrd?

528