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 to recover from sql injection? : sql server security

1023


What is cached report?

144


What's the information that can be stored inside a bit column?

1006


How to create a stored procedure with a statement block in ms sql server?

1071


What is ms sql server index?

1109


Explain cdc and sql injection?

985


How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

1091


What is sql profiler. What are the default templates with it? : sql server database administration

1047


What are the types of containers in ssis?

1172


Do you know what is bit data type and whats the information that can be stored inside a bit column?

957


Explain the use of containers in ssis?

967


What are pessimistic lock and optimistic lock?

1079


What are a scheduled jobs?

956


Why it is recommended to avoid referencing a floating point column in the where clause?

968


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

959