SQL foundation tutorial (2nd edition) Chapter 5 complex queries: 5-3 correlated subqueries

use correlated subqueries is compared in a segment group.
associated sub-queries and GROUP BY clause, as also on the data in the table can be segmented.
binding conditions associated sub query if an error occurs does not appear in the sub-query into.


Common subqueries and correlated subqueries difference

so everyone can understand what kind of operation it. We are not at all the business
products as the basis, but in order to subdivide the group, based on the average price of goods in the group and each product
unit sales compared.


Correlated subquery is used to cut collection points

 

Binding conditions must be written in the sub-query

Guess you like

Origin www.cnblogs.com/MarlonKang/p/12230336.html