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 triggers in ms sql server?

1118


Write the queries for commands like Create Table, Delete table, Drop Table etc.

1108


What are partitioned views?

997


How to compare the top two records using sql?

1342


How to create a new table in a given schema?

1186


What are the steps to follow to configure SQL*Net?

1042


How to choose all records from the table?

1070


Explain what is the function of sql server agent windows service?

994


Explain the categories of stored procedure?

937


Can sql server be linked with other servers like oracle?

965


Can you explain the disadvantages/limitation of the cursor?

989


How to get the definition of a user defined function back?

1044


How to connect php with different port numbers?

1085


What is sparse columns of sql server 2008?

1057


List out the different types of locks available in sql server?

978