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...

Which is best Subquery (or) joins in sql server? explain why

Answer Posted / rajeevrohilla

In normal situation join are best since there is no
subquery for each record for the other table. but in some
situations Subquery are best. for example- when the
subquery results one or fewer (3 or 4 records) that it will
work faster since it also saves the joining time(if there
are more than 1 joining fields then joining takes lots of
time). Subquries also perform better when tables have less
amount of data.

Is This Answer Correct ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is create database syntax? : Sql server database administration

1046


How to create prepared statements using odbc_prepare()?

995


What is model database in sql server?

1001


What is sql server used for?

986


Can we hide the definition of a stored procedure from a use?

1131


What are 3 ways to get a count of the number of records in a table?

1015


How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?

967


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

1001


What is the difference between substr and charindex in the sql server?

998


How to create user defined functions with parameters?

1161


Does a full backup include transaction log?

905


What is subquery explain with example?

1005


What is plan freezing?

907


How to sort the query output with order by clauses in ms sql server?

982


Explain the concept of recursive stored procedure.

878