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 sql server version?

1016


Explain cdc and sql injection?

971


What are the differences between triggers and stored procedures?

1060


How can I get data from a database on another server?

986


What is the usage of sign function?

1095


What is indexed view?

974


How to use transact-sql statements to access the database engine?

1056


Explain what is cte (common table expression)?

1120


How we can refresh the view?

1104


Tell me what is normalization? Explain different forms of normalization?

1026


How to create prepared statements using odbc_prepare()?

1059


What is the use of =,==,=== operators?

1003


How to throw custom exception in Stored Procedure?

1042


What are the advantages of using third-party tools?

989


Explain about protocol layer present in SQL server?

1191