Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 denormalization. : Sql dba

1045


What are the different types of tables in sql?

931


What is dialect in sql?

890


what are set operators in sql? : Sql dba

985


what is a trigger? : Sql dba

976


Does truncate release storage space?

1015


Why do we use procedures in sql?

1025


What does the hierarchical profiler does?

1005


How sql query is executed?

1069


How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

1074


how to get @@error and @@rowcount at the same time? : Sql dba

970


What is the difference between database trigger and stored procedure?

1008


How to read/write files from pl/sql?

994


how to load data files into tables with 'mysqlimport'? : Sql dba

1034


What is the most common sql injection tool?

997