Database Management Question:
Download Questions PDF

What is the difference between inline query and corelated subquery?

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.

Download Database Management Interview Questions And Answers PDF

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