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 pessimistic concurrency?

970


Why use view instead of a table?

949


How do you delete a trigger?

969


What are transactions in sql?

1056


What is dirty page?

968


How many columns can we include on clustered index ?

982


What is a data source or ds? : sql server analysis services, ssas

1003


What are different types of database indexes?

1092


What is the difference between the application object and session object?

1063


Differentiate between ms sql server reporting services vs crystal reports?

894


What is amo? : sql server analysis services, ssas

1087


Describe how to use linked server?

1010


How you can get the list of largest tables in a database?

1008


What is difference between getdate and sysdatetime in sql server 2008?

1047


How to get the definition of a user defined function back?

1042