时间:2021-07-01 10:21:17 帮助过:24人阅读
SELECT Store_Name, SUM(Sales) FROM Store_Information GROUP BY Store_Name HAVING SUM(sales) > 1500;
Los Angeles 1800
请读者注意: GROUP BY 子句并不是一定需要的。
SELECT * FROM report_backup r1 HAVING r1.STATE>1
sql-having
标签: