Sub query and correlated sub query

What is the difference between sub query and correlated sub query

Questions by sinraj

Showing Answers 1 - 6 of 6 Answers

subquery: required in those cases where requisted data are not known
                  and always depend on inner query

correlated subquery: outer depend on  inner query and inner query depend on                                   outer query

In sub query the inner query is executed only once. Depeding upon the results of inner query , outer query is evaluated.

In correlated subquery the inner query is evaluated once for each row processed by the parent statement or outer query.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions