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 / hitesh taneja

When we use 1=1 or any condition which is always going to
true, it will take extra bit of time bcoz it is a condion so
althouth the output of the query will be the same the
performance time will be bit higher with condition.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find the default sql server instance?

990


What are ddl (data definition language) statements for tables in ms sql server?

1151


What is the difference between DataRow.Delete() and DataRow.Remove()?

1272


What to check if a User database is locked?

1115


What are the system database in sql server 2005?

1097


what is new philosophy for database devises for sql server 7.0? : Sql server database administration

1050


Explain use of expression builder.

1069


Explain sql server service broker?

1026


What is the xml datatype?

1122


Do you think BCNF is better than 2NF & 3NF? Why?

1338


What is rolap and its advantage? : sql server analysis services, ssas

1330


What is impersonation? What are the different impersonation options available in ssas? : sql server analysis services, ssas

1024


How to stop log file growing too big?

1060


Can you import Microsoft Excel data to SSRS?

135


List out the differences between the clustered index and non-clustered index in sql server?

1051