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
What are the design features involved in teradata?
Write a program to show the parser component used in teradata?
i learn teradata,it is so intersting,now i want teradata certifications ,so any 1 help me to get teradata certifications TD 12 ? email:kdcrazyy@gmail.com
What do you mean by teradata sql assistant?
What are the different methods ot loading a dimension table? A fact table etc?
How many tables can you join in v2r5?
There is a column with date in it. If I want to get just month how it can be done? Can I use sub string?
Highlight the differences between Primary Key and Primary Index.
What are the frequently used data types in teradata?
Mention a few of the ETL tools that come under Teradata.
What is the particular designated level at which a LOCK is liable to be applied in Teradata?
What happens when a node suffers a downfall?
What are the updated features of teradata?
What is teradata and why it is used?
Give a justifiable reason why Multi-load supports NUSI instead of USI.