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

Explain the types of join supports by teradata?

976


What is spool space and when running a job if it reaches the maximum spool space how you solve the problem?

1099


How do you set the session mode parameters in bteq?

1088


Highlight the advantages of PPI(Partition Primary Index).

1064


What is called partitioned primary index (ppi)?

1000


What is the basic syntax for teradata select statement?

1018


Can we have two time dimensions in a schema(either star or snow flake)? For ex if we want joining date of employee and if we want today's sales with time whether can we have two time dimensions for accommodating above tasks?

2096


What is the difference between teradata and basic rdbms?

999


What are differences between teradata and ansi session modes in teradata?

1153


Where is teradata rdbms used?

1070


Hi Friends, Please send me Teradata Materials for certifications Thanks in advance !!

2155


What are the scenarios in which full table scans occurs?

993


Explain the term 'primary key' related to relational database management system?

1023


What is the function of parser component in teradata?

1066


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

2040