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?

Answers were Sorted based on User's Feedback



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

Answer / ashu_deepu

2 NULL value can not b equal.

i just want to remind some imp. point about primary key.
d condition is
1) not null n
2) unique.
since 2 null value r unique dats why we require the 1st point of not null.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / nhajare

Hi,
If you comapare null=null then it return 0 rows selected.
Check the result of this query...

select * from table_name where null=null;

Is This Answer Correct ?    1 Yes 0 No

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

Answer / sandeep kumar

select * from dual where null=null

no row return

Is This Answer Correct ?    1 Yes 0 No

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

Answer / naidu

NOT EQUAL AND AGAIN ANSWER IS NULL

Is This Answer Correct ?    1 Yes 0 No

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

Answer / kishore vakiti

select * from emp where null is null;

Is This Answer Correct ?    1 Yes 0 No

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

Answer / abhishek jaiswal

Decode will return true if we compare null to null value.
select decode(commission_pct,null,0) from employees

Is This Answer Correct ?    1 Yes 0 No

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

Answer / divi

Null is not equal to Null
Nor
Null is equal to Null

Is This Answer Correct ?    0 Yes 0 No

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

Answer / sureka

set serveroutput on;
DECLARE
D INTEGER :=NULL;
E INTEGER :=NULL;
BEGIN
IF (D = E) THEN
dbms_output.put_line('PASS');
ELSIF (D <> E) THEN
dbms_output.put_line('FAIL');
ELSE
dbms_output.put_line('NA');
END IF;
END;

will return NA

Is This Answer Correct ?    0 Yes 0 No

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

Answer / archana

begin
if null is null then
dbms_output.put_line('null');
else
dbms_output.put_line('not null');
end if
end;

now it will return null
it is recommended to use 'is' with null not ' ='

Is This Answer Correct ?    0 Yes 0 No

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

Answer / kuldeep123

DECLARE
v1 NUMBER;
v2 NUMBER;
BEGIN
IF v1 = v2
THEN
DBMS_OUTPUT.put_line ('Null comapred successfully');
ELSE
DBMS_OUTPUT.put_line ('oops u have to use ISNULL opeartor');
END IF;
END;


output : oops u have to use ISNULL opeartor

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What is INSTEAD OF trigger ?

13 Answers   Hexaware, TCS,


How many types of keys are there in sql?

0 Answers  


What does varchar include?

0 Answers  


What is a data definition language?

0 Answers  


What is java sql connection?

0 Answers  


what is meant by nl2br()? : Sql dba

0 Answers  


Explain the the update statement in sql?

0 Answers  


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

1 Answers  


What are the different type of joins in sql?

0 Answers  


What are tables in sql?

0 Answers  


What is java sql package?

0 Answers  


What does select top 1 do in sql?

0 Answers  


Categories