对整张商品表做一次汇总,输出一行统计:
n:商品总数,即表的行数,价格缺失的商品也算在内。avg_price:价格的平均值,忽略价格为 null 的商品。max_price、min_price:价格的最大值和最小值,同样忽略 null。
输入
products(product_id, name, category, price, cost, launched_on):price可能为 null
输出
恰好一行,列为 n, avg_price, max_price, min_price。