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 output for this query
select * from employee where 1=1;

Answer Posted / soorai ganesh

This Query will return all records from employee table.

Infact insteadof this query u can use " select * from employee ".Because the condition 1=1 is always true.It never become as false.

Both of the Queries are same..........

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many databases instances are there in sql server 2000?

1168


System variable and temporary variables

2302


If user is owning any SQL Objects, can we drop that user

2133


What are the advantages of paper records?

1012


Why truncate is ddl command?

1116


What will be the value of @@fetch_status if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?

1193


What is difference between foreign key and unique key?

1048


what is the information that can be stored inside a bit column? : Sql server database administration

1010


Explain triggers in sql?

1003


Explain filtered indexes?

1041


Explain the working of sql privileges?

1143


How to stop log file growing too big?

1061


How do I connect to sql server database?

1067


What is a collation?

1131


What is difference between aggregate and analytic function?

978