When we write a subquery in such a way that inner subquery and outer main query are interdependent, then we call it s correlated Sub query. In this case, for executing every row of inner query, the outer query is also executed. The inner query needs data from the outer query for its execution.
select * from tblInvoiceDetail where articleid in (select articleid from tblArticlemaster where doi like ‘RKCbp%’)
In a non-correlated subquery, inner subquery has no dependency on outer query.