容易出问题的地方是,利润率的筛选条件是和销售额排名放在一起的。如果子查询先进行利润率筛选,再进行排名,就会把利润达标但是销售额靠后的算进来题目意思应该是先选前三名,同时看利润达不达标,不达标的话就不要了。selectproduct_id,product_name,category_id,sales_amount,profit_ratefrom (select p.product_id, product_name, category_id, sales_amount, round((sales_amount-cost_amount)/sales_amount,2) as profit_rate,...