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 out put of below queries?
a. select * from Emp where null = null;
b. select * from Emp where 1=1;

Answers were Sorted based on User's Feedback



what is the out put of below queries? a. select * from Emp where null = null; b. select * ..

Answer / poonam

First Query : will return all columns name without any data.
Second Query :will display all the records which are available in the table.bez Select* from emp where 1=1; the condition is true.

Is This Answer Correct ?    0 Yes 0 No

what is the out put of below queries? a. select * from Emp where null = null; b. select * ..

Answer / nitin yadav(nitin.yadav.india@

u can not compare two nulls

null means nothing.so
ANS 1:no row
ANS 2:All row (because of 1=1 is always true for all rows)

Is This Answer Correct ?    1 Yes 2 No

what is the out put of below queries? a. select * from Emp where null = null; b. select * ..

Answer / rohit

in first case it would response and it will show error and
in second case it will show object belonging to first row
and column

Is This Answer Correct ?    4 Yes 29 No

Post New Answer

More SQL Server Interview Questions

i need some interview questions on sql server developer plz any onee send some links.

2 Answers  


What is the full form of ddl?

0 Answers  


Repair mdf file

2 Answers  


What is normalization? Explain different forms of normalization?

0 Answers  


How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.

0 Answers   IBM,


What do you mean by tablesample?

0 Answers  


Can XML be used to access data?

2 Answers  


Difference between: - Delete & Truncate - Table & View - Constraints & Triggers

1 Answers   United Healthcare,


What is a trigger and its types?

0 Answers  


Tell me what do you mean by an execution plan? Why is it used? How would you view it?

0 Answers  


How to read 2nd highest sal from EMP table?

5 Answers   IBM, TCS,


What is full form of XP ?

42 Answers   Cap Gemini, Infosys, Microsoft, Oracle, Reliance,


Categories