Difference between Subquery and Correlated Subquery

前端 未结 7 809
Happy的楠姐
Happy的楠姐 2020-11-28 05:10

Is the following piece of SQL Query a normal query or a Correlated Subquery ??

SELECT UserID,
       FirstName,
       LastName,
       DOB,
       GFName,
          


        
相关标签:
7条回答
  • 2020-11-28 06:00

    I think below explanation will help to you.. differentiation between those: Correlated subquery is an inner query referenced by main query (outer query) such that inner query considered as being excuted repeatedly.

    non-correlated subquery is a sub query that is an independent of the outer query and it can executed on it's own without relying on main outer query.

    plain subquery is not dependent on the outer query,

    0 讨论(0)
提交回复
热议问题