What is correlated sub-query?

Answer Posted / bindhu

Correlated subquery are used for row-by-row prcessing.Each
subquery is executed once for every row of the outer
query.It is one way of reading every row in a table and
camparing the values in each row againt the realted data.

Eg: select ename,sal,deptno from emp outer where sal >
(select avg(sal) from emp where deptno=outer.deptno);

Each time a row from the outer query is processed,the inner
query is evaluated.

Is This Answer Correct ?    103 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the set operators in sql?

541


What is sql select statement?

495


Enlist the data types that can be used in pl/sql?

564


What are types of indexes in sql?

530


Explain the purpose of %type and %rowtype data types with the example?

543






Why we use cross join?

532


How do I create a memory optimized filegroup?

518


When should I use nosql database?

543


what is innodb? : Sql dba

569


Is there a way to automate sql execution from the command-line, batch job or shell script?

546


Show the two pl/sql cursor exceptions.

605


Which join is like inner join?

553


How to select 10 records from a table?

638


What is the function that is used to transfer a pl/sql table log to a database table?

542


What is a join?

613