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 / pavan

hey! I too agree there wont be any difference in result it
displays but the performance will be different. While
executing the first query the where condition to be checked
for each record it displays hence it takes much time to
execute while compared with question no 2 i.e, without
where condition. this is what I believe in.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you migrate data from mssql server to azure?

165


How many types of cursor type are there?

1091


Why use triggers?

1015


How do I completely remove sql server instance?

1104


Do you know how to store and query spatial data?

1040


What authentication modes does sql server support?

1103


how to do partition in sqlserver

2475


how will add additional conditions in sql?

1107


can we have a nested transaction? : Sql server database administration

1097


Do you know what is normalization of database? What are its benefits?

1122


What functions can a view be used to performed?

1060


What are the types of lock supported by ?

1046


What is the sql case statement used for?

1100


What is the difference between Clustered and Non-Clustered Index?

1059


Does the order of columns in update statements matter?

913