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 are the reporting service components in SSRS?

163


what are questions asked in TCS for database tester (sqlserver)for 2-3 exp?

5920


How many servers can we create in a single subscription?

162


What is an index. What are the types?

1082


What is user-defined function? Explain its types i.e. Scalar and inline table value user-defined function?

898


What is the sql case statement used for?

1090


Can sub report data source be different from that of the parent report?

143


What is rank function?

1020


Explain different forms of normalization?

942


How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?

1983


What are the different editions available in sql server 2000?

1046


Give me a SQL Query to find out the second largest company?

1161


What is the difference between web edition and business edition?

111


Mention the different types of replication in sql server.

1016


What is the cpu pressure?

1034