Interviewer And Interviewee Guide

Analyst Integration Interview Question:

Can you please explain the difference between correlated and non-correlated subquery?

Submitted by: Administrator
In correlated sub-query, inner query depends upon outer query and executes for each row in outer query. While non-correlated sub query doesn't depend upon outer query and can be executed independently. Due to this reason former is slow and later is fast. BTW, correlated subquery has some nice application, one of them is finding Nth highest salary in Employee table, as seen on previous SQL question as well.
Submitted by:

Read Online Analyst Integration Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.