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 sql query limit?

510


What are the steps for performance tuning.

845


What do you understand by pl/sql cursors?

553


What is indexes?

545


Explain the types of joins in sql?

575






Which language is used in sql?

521


Whis is not false in primary key?

977


What is interval partition?

546


Why use triggers in sql?

505


What do you understand by pl/sql packages?

573


What are character functions in sql?

499


What is an intersect?

657


what is difference between delete and truncate commands? : Sql dba

580


What is sqlca in db2?

536


How to display the current date in sql?

601