what is the difference between the query and corelated
query

Answer Posted / aravinda

query: query is single time validation of conditions for
entire result once result is fetched there no further
validation of records.

corelated sub query : each record is validated with inner
query aftr fetch.

1) outer query will execute first and pass a value to inner
query.
2) based on outer query value inner query will execute.
3) based on inner query value the outer query record will be
validated.

inner query will execute for every record of outer query( if
outer query has 10 records inner query will execute 10 times)

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlerrm?

542


Why triggers are used?

553


What is the difference between truncate and drop statements?

571


How does sql store data?

481


What is data control language (dcl)?

599






How do I run a sql script?

510


Is sql a oracle?

521


What does rownum mean in sql?

551


What is composite data type in pl sql?

554


what is sp_pkeys? : Transact sql

699


When is the explicit cursor used ?

588


Which command is used to delete a package?

577


what is top in tsql? : Transact sql

539


What is identity column in sql server?

527


Is full outer join same as cross join?

501