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 / krishna sandeep

Of course, both the Queries will get you the same data but,

When compared to the first case processing time will be
slightly reduced in the second case.

Bytes sent from client and Bytes received from server will
be more in the first case.

and one more thing is better not using "select * from ..."

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between functions and stored procedures?

1222


Define right outer join in sql server joins?

1111


Can we insert data into view sql server?

983


What is a trigger and its types?

1039


What is explicit cursors?

1123


what is the difference between Tabular and Matrix report?

179


your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration

1048


you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration

1009


Do you know data definition language, data control language and data manipulation language?

1087


Why use triggers?

1068


What is the difference between a primary key and a unique key? Are they the same?

1121


How to concatenate two strings in SQL Server.

1203


What does this statement do @@rowcount?

1016


How to modify an existing user defined function?

1169


What command do we use to rename a db, a table and a column?

980