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 / sailaja

Hi,

select * from EMP where null=null;
->null=null is always false so it gives 0 records.
if it is null is null then it fetches all the records in a
table..

select * from EMP where 1=1;
->it fetches all the records in a table
if it is select * from EMP where 1=2;
-->it fetches 0 records..

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is report rendering ?

149


you want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition? : Sql server administration

1004


What is the process of normalising?

948


What are the different types of upgrades that can be performed in sql server?

1119


Which Model uses the SET concept

937


What is sql collation?

1139


What is the difference between composite index and covering index?

902


What is the use of attributehierarchyvisible ? : sql server analysis services, ssas

1014


What is function of ROLLUP ?

1041


What are the different types of columns types constraints in the sql server?

1012


Explain the categories of stored procedure?

889


What are indexes in ms sql server?

1000


What is a table called, if it has neither cluster nor non-cluster index? What is it used for?

979


what is unique and xaml nonclustered index

997


What are scheduled tasks in sql server?

1011