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 many databases can we create in a single server?

205


What is the difference between ddl and dml?

1020


Tell me what is a linked server?

1002


How do I start and stop sql server?

984


what is the difference between count(*) and count(1) ?

1045


What are the different types of replication are there in sql server 2000?

1007


How to locate and take substrings with charindex() and substring() functions?

967


What is a covered index?

906


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

992


What happens to a trigger with multiple affected rows?

899


What do you mean by SQL injection attack?

1027


How to add more data to the testing table in ms sql server?

1027


What is the difference between left and right outer join?

1043


What is sql server query analyzer?

987


what is a live lock? : Sql server database administration

914