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 are character functions in sql?

663


How to add, remove, modify users using sql?

743


What is full join?

699


What is view explain with example?

686


What is a design view?

700






What is record variable?

708


How do you run a query?

766


What is the advantage of nosql?

730


What is integrity in sql?

750


What are the key differences between SQL and PL SQL?

850


Is json a nosql?

723


Define commit, rollback and savepoint?

764


What is ttitle and btitle?

768


What is string join?

746


What is mdb stand for?

732