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

hey! I too agree there wont be any difference in result it
displays but the performance will be different. While
executing the first query the where condition to be checked
for each record it displays hence it takes much time to
execute while compared with question no 2 i.e, without
where condition. this is what I believe in.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is report snapshot in ssrs?

265


Explain the collation?

1097


What is the difference between locking and multi-versioning?

981


What is self contained sub query?

1023


What is simple indexing method?

1012


What command would you use to add a column to a table in sql server?

1298


How to install sql server 2005 express edition?

1107


Do you know the cursor types?

1150


How to recreate an existing index in ms sql server?

1037


Describe how to use linked server?

1003


What are the properties of primary key?

965


What are trace files?

945


Tell me what is fill factor?

955


What happens if ntwdblib.dll is missing on your machine?

1138


Name and describe few console utilities for ssrs?

284