Database Management Question:

What is the difference between inline query and corelated subquery?

Database Management Interview Question
Database Management Interview Question

Answer:

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.


Previous QuestionNext Question
Tell me Dept wise average salary?How to store space between two strings in database i.e
oracle?