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

Explain stored procedure?

982


Why do we use stored procedures in sql server?

894


how you can move data or databases between servers and databases in sql server? : Sql server administration

914


What is 3nf normalization?

924


How to handle error or exception in sql?

933


what is the different types of backups available in sql server? : Sql server database administration

879


How do I find sql server instance name?

913


What command is used to delete a table from the database in the sql server and how?

1039


What is the process of normalising?

943


how would you troubleshoot blocking? : Sql server database administration

942


What is BLOCK statements in SQL?

1205


How to retrieve error messages using odbc_errormsg()?

988


What is the purpose of update statistics and scope_identity() function?

1046


Define outer join?

927


What do you mean by recursive stored procedure?

881