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

Can we rewrite subqueries into simple select statements or
with joins? Example?

Answer Posted / divya kalra

Subqueries can often be re-written to use a standard outer
join, resulting in faster performance. As we may know, an
outer join uses the plus sign (+) operator to tell the
database to return all non-matching rows with NULL values.
Hence we combine the outer join with a NULL test in the
WHERE clause to reproduce the result set without using a
sub-query.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What can be used instead of trigger?

1150


How to create prepared statements using odbc_prepare()?

1058


What is the command used to recompile the stored procedure at run time?

1069


List out the differences between the clustered index and non-clustered index in sql server?

997


What is apply operator in sql?

1008


Difference between Inner vs outer joins?

942


Do comments need to go in a special place in sql server 2005?

850


Explain what is the difference between union and union all?

1002


List some advantages and disadvantages of stored procedure?

1014


Explain the steps to create and execute a user-defined function in the sql server?

960


How you can change the database name in SQL SERVER?

1188


What is isnull() operator?

1032


How to create an multi-statement table-valued function?

984


What is normalization of database? What are its benefits?

1018


What are the main differences between #temp tables and @table variables and which one is preferred?

1076