What is the result, when NULL is compared with NULL?
Answers were Sorted based on User's Feedback
Answer / kmbkrishnan
if we check a Null value with another Null value as equal,
the result will be false.
| Is This Answer Correct ? | 47 Yes | 8 No |
Answer / anil kumar abbireddy
NOT EQUAL AND AGAIN ANSWER IS NULL
| Is This Answer Correct ? | 14 Yes | 2 No |
Answer / 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 |
Answer / pavan_1981
i dont know how u can compare a null value with another
null value.i dont find any operator for doing that.
| Is This Answer Correct ? | 15 Yes | 6 No |
Answer / talent pool
NULL Is An Unknown Value
So We Couldn't Compare it With Other One.This Is Pure
Correct Answer.
declare @d int
Set @d =null
declare @r int
Set @r=null
if @d=@r
Print 'Hi'
Else
Print 'Summa Vilayadatha'
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / a.jyothsna
One null value is not equal to another null value.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / kirankumar.vangeti
Null is neither equal to null nor it is not equal to null.
Any comparison to null is evaluated to null.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / brahma
Null means unknown values, but do not compare both null
values
| Is This Answer Correct ? | 2 Yes | 0 No |
what is normalization? : Sql dba
if i perform any operation on views such as insert, delete etc will my base table get affected?????
How to write pl sql program in mysql command prompt?
How can I make sql query run faster?
Is sql similar to python?
What is cursor in pl sql?
what is oltp (online transaction processing)? : Sql dba
How can you fetch first 5 characters of the string?
Who is the owner of mysql database?
How to create a table using constraints... IF i change the PARENT KEY value ,then CHILD KEY table will also to change in the another table... plz reply ur answers @ mak2786@gmail.com Arunkumar
Which sql statement is used to return only different values?
Query for second maximum salary in each in each department
15 Answers DST Global Solutions, TCS,
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)