聚合函数
- select avg(prod_price) AS avg_price from products;
- select count(*) as num_cut from customers;
- select max(prod_price) AS max_price from products;
- select min(prod_price) AS max_price from products;
- select sum(quantity) AS items_ordered from orderitems where order_num = 20005;
- select sum(quantity * price) AS total_price from orderitems where order_num = 20005;
浙公网安备 33010602011771号