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 correlated sub queries and
inner queries?

Answer Posted / vinay sir(datawarehousing tech

Guys,
First of all the question is not proper,it is supposed to
be "the difference between correlated sub queries and
simpe sub queries".

Corelated and Simple, both are Subqueries(having inner and
outer queries) but the way they execute is different.
Simple Subquery:Inner query executed first and then outer
query. Inner query executed only one time.

Corelated Sub query:Outer query is executed first and then
inner query.Outer query is executed many times.

Please find a common example where you can see the
execution difference.

Simple Subquery: select max(sal) from emp where sal not in
(select max(sal) from emp)
Corelated: Select a.sal from emp e where 1=(select count
(distinct(b.sal)) from emp b where a.sal<b.sal)

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the string manipulation operators and functions associated with teradata?

1147


Explain teradata vs. Redshift?

1076


What are the various etl tools in the market?

1121


What are the various reporting tools in the market?

1115


How can bottlenecks be identified?

1060


How teradata makes sure that there are no duplicate rows being inserted when its a set table?

1022


Highlight the need for Performance Tuning.

1154


What is TPD?

1417


What are the joins in teradata and how many types of joins are there in teradata?

1055


Backup Script was blocked you are unable to archive the data now. how do you analyze it and where do you identify ?

2086


What is collect statistics?

1048


What are the 5 phases in a multiload utility?

1086


How to explain project Architecture and flow in teradata interviews?Can please anyone help on this? Am new to teradata.

4421


What is teradata? What are some primary characteristics of teradata?

1026


What exactly do you know about catching in teradata?

1077