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;

Answer Posted / jerry joseph

a. select * from Emp where null = null;

null = null will be always false.. so no rows returned..
change the query to "select * from Emp where null is null;"
to select all rows

b. select * from Emp where 1=1;

1 = 1 will be always true.. so all the rows are returned..

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by indexing?

1098


What are the advantages to use stored procedures?

1189


What is side by side migration in sql server?

1189


What’s the distinction between dropping a info and taking a info offline?

1097


How to drop an existing table?

1069


What is field with example?

980


If user is owning any SQL Objects, can we drop that user

2137


What is meant by Active-Passive and Active-Active clustering setup?

1284


What are the different sql server versions?

1038


You want to use bids to deploy a report to a different server than the one you chose in the report wizard. How can you change the server url?

160


How many ways to create table-valued functions?

1065


What is table value parameters (tvp)?

1158


Explain for xml explicit mode?

1032


Why do we need normalization?

988


What are sparse columns?

1078