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 difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table

Answer Posted / hitesh taneja

When we use 1=1 or any condition which is always going to
true, it will take extra bit of time bcoz it is a condion so
althouth the output of the query will be the same the
performance time will be bit higher with condition.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are isolation levels? : Sql server database administration

913


What is conditional split?

997


what are the types of indexes? : Sql server database administration

1062


What are the advantages of using stored procedures?

892


How will you go about resolving deadlocks?

913


Explain transaction server explicit transaction?

880


How to modify the underlying query of an existing view?

937


What are sql servers used for?

982


How to trouble shoot if unable to connect SQL Server

1927


Explain left outer join and right outer join?

974


What is the default Port No on which SQL Server listens?

1071


What is the report builder?

131


How does Report Builder support Analysis Services cubes?

147


What is difference between rollback immediate and with no_wait during alter database?

1017


How to specify the collation for a character data type in ms sql server?

965