What is the result, when NULL is compared with NULL?

Answer Posted / affan shemle

It is absolutely perfect to compare NULL with NULL. It
yields the result NULL. For those who are saying the result
is FALSE they are taking the answer from IF THEN ELSE. In
all the above answers supported by IF Statement there is a
catch. The result of IF is a Boolean. A Boolean can hold
TRUE, FALSE or NULL. So when you compare NULL vs NULL as a
condition of IF THEN, it returns NULL so the controller goes
to ELSE skipping the IF. Makes sense???
/
AFFAN SHEMLE

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba

522


What is restrict in sql?

555


Is nosql relational?

546


Determine if oracle date is on a weekend?

556


Does truncate free space?

517






How do you use a while loop in pl sql?

539


How many types of relationship are there?

547


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

560


Does sql between include endpoints?

552


What is sql and its types?

625


What is the difference between left outer join and left join?

514


What do you mean by field in sql?

536


How do I find duplicates in two columns?

552


Can we insert data into materialized view?

513


Should I use mbr or gpt?

545