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 indexing explain it with an example?

959


What is a collation?

1049


what authentication modes does sql server support? : Sql server database administration

1033


What is 'Join' and explain its various types.

1084


what is the main function of a query parameter?

144


What are partitioned views?

954


Describe the left outer join & right outer join. : sql server database administration

973


What is nolock?

948


How connect excel to sql server?

945


Explain the collation?

1066


What are the types of normalization?

984


What are the different types of subquery?

1113


How many tables can be joined in SQL Server?

1025


How do I schedule a sql server profiler trace?

940


What is the primary use of the model database?

1039