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

what are the security recommendations while using mysql? : Sql dba

581


What is difference between rank () row_number () and dense_rank () in sql?

583


Does sql*plus also have a pl/sql engine?

563


what is table? : Sql dba

576


What are sql constraints?

566






What is a temporal table?

499


what are the authentication modes in sql server? How can it be changed? : Sql dba

703


how to do backup entire database? : Transact sql

620


What are tables and fields in the database?

556


Explain the types of joins in sql?

575


What is tuple in sql?

547


When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?

637


Why trigger is used in sql?

536


Can we join 3 tables in sql?

500


What do you mean by “trigger” in sql?

626