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 new security features added in sql server 2014? : sql server security

1005


What is the main difference between ‘between’ and ‘in’ condition operators?

1195


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

1037


What is a sql join?

1025


Which are ddl commands?

1053


How do we Backup SQL Azure Data?

108


Explain how dts is used to extract, transform and consolidate data?

1000


What are truncate options available in sql server? : sql server database administration

1035


Are null values the same as that of zero or a blank space?

1040


Please explain go command in sql server?

1058


Define Unique Key?

1021


What are the different normalization forms?

1118


What is built-in/administrator?

1013


What is 5nf in normalization form?

998


what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?

1968