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 / jay vardhan singh

select * from Emp where null = null;

null can not be equal to null.So,Condition is not satisfied.
So,it will give only column name.

select * from Emp where 1=1;

1 is always equal to 1.So,Condition is satisfied ,So It
will give all data which is present in table.

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?

1280


What is user-defined function?

1039


Explain the etl (extraction, transformation, and loading)?

1060


How can sql server instances be hidden?

1036


What is bit data type? What's the information that can be stored inside a bit column?

978


What are key, name and value columns of an attribute? : sql server analysis services, ssas

1076


What is partition in sql server?

1101


What is faster join or union?

1330


What is the Disadvantage of indexed sequential file.

1141


What are scheduled tasks in sql server?

1163


How to select some specific rows from a table in ms sql server?

1062


what data regions are and what are the different data regions?

148


What is the main purpose of having conversation group?

960


How to find the list of fixed hard drive and free space on server?

1299


what is the difference between Delete and Truncate command in SQL

1205