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

Define concurrency control. : Transact sql

582


Is sql procedural language?

548


Is time a data type in sql?

474


What are the constraints available in sql?

575


What are three advantages to using sql?

545






Is not null in sql?

554


Why we use cross join?

536


How do you write a subquery?

516


How can I tell if sql is running?

581


What is the difference between microsoft sql and mysql?

504


what tools available for managing mysql server? : Sql dba

525


how to include character strings in sql statements? : Sql dba

551


How we can update the view?

597


How do I count records in sql?

510


what are numeric data types? : Sql dba

568