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 the difference between indexing and hashing?

1219


What is difference between getdate and sysdatetime in sql server 2008?

1097


Can a database be shrunk to 0 bytes, if not, why?

1159


Is it possible to call a stored procedure within a stored procedure?

1026


What is query optimizer in sql server?

1072


What do you mean by recursive stored procedure?

987


Can you explain different types of locks in sql server?

992


Explain how to send email from sql database?

1102


What is query processing?

988


Define full outer join in sql server joins?

1047


what is dbcc? : Sql server database administration

1077


Explain indexing and what are the advantages of it?

1070


What are logical database components? : SQL Server Architecture

1092


How can you find out which stored procedures are recompiling?

948


How to call stored procedure using http soap?

1128