sql:关联子查询

关联子查询会在细分的组内进行比较的时候使用。code 假设要按照商品的种类与平均销售单价进行比较,正常的逻辑是:先取出平均值再与销售单价进行对比blog select product_id, product_name, sale_price from Product where sale_price > (select avg(sale_price) fro
相关文章
相关标签/搜索