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 the difference between rank and dense_rank?

1161


Can select statements be used on views in ms sql server?

1110


What is default constraint?

1054


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

1062


in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it

1565


What do you mean by subquery?

1146


Define model database?

1032


Do you know what are the ways available in sql server to execute sql statements?

1082


What is the server name in sql server?

1066


What stored by the tempdb ? : sql server database administration

1097


What is dknf in normalization form?

1111


What are wait types?

1199


what stored procedure would you use to view lock information? : Sql server administration

1022


how will add additional conditions in sql?

1170


What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?

961