what is the difference between inline query and corelated
subquery

Answer Posted / sudipta santra

Inline query :
select * from emp where empno=(select max(empno) from emp);

Co-Related sub query:

Select * from emp where dob> (select distinct dob where
deptno= 10);

Note: In the Inline subquery , The main query depends upon
the outcome value of the inline sub query which is in-lined
but in case of co-related sub query the main query and sub
query both run simultaneously then the check occurs.

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the hierarchical database?

637


What is the purpose of a field in a database?

523


Explain why an information gap exists in most organizations.

584


What is foreign key in dbms?

538


What do you mean by starvation in dbms?

685






Is there a way to detect whether fbclient.dll or fbembed.dll is loaded?

569


What is a distributed database?

593


What is cliques? What is vdisk and how it will communicate with physical data storage at the time of data retrieval through amp?

564


What integrity rules exist in the dbms?

585


Define dbms.

591


What is db driver?

574


What are the two major subsystems of system r?

712


What is foreign key in database?

591


How to move a multi-file database?

593


Have you written applications to retrieve stored images in a table?

674