What is the difference between correlated sub queries and
inner queries?

Answer Posted / yuvaevergreen

As said above, the main difference between a correlated Sub
Query and an inner query is that in a correlated sub query,
the inner query refers back to the column(s) in the outer
query i.e., the inner query is executed for each row of the
outer query.In the below query, the avg(salary) query is
executed for each row in the outer query.
-->>
sel * from employee as e where salary > (sel avg(salary) from
employee as b where e.deptno=b.deptno);

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If Fast Load Script fails and only the error tables are made available to you, then how will you restart?

716


What is the use of fallback?

639


What are default access rights in teradata? What explicit right can be given to a user?

736


Briefly explain each of the following terms related to relational database management system (rdbms) – database, tables, columns, row, primary key and foreign key.

680


Why do you get spool space errors? How do trouble-shoot them?

682






What happens when a node suffers a downfall?

760


What is the function of parser component in teradata?

703


What is node? How many nodes and amps used in your previous project?

758


Explain parsing engine in teradata?

694


What are the different design perspectives used in teradata?

644


How many sessions of MAX is PE capable of handling at a particular time?

693


How to identify ppi columns?

741


Describe primary index in teradata. And what are the available primary index types?

630


What is the use of teradata system software?

632


What are tpump utility limitations?

718