1.表结构:
create table products(product_id int,price double,product_type_id int)
2.关联子查询语句 :
select product_id,avg(price) from products outer where price > (select avg(price) from prodcuts inner
where inner.product_type_id=outer.product_type_id);
对这个关联子查询的执行不是太理解,麻烦高手帮忙分析一下!谢谢!