cubrid的中sql查询语法groupby GROUP BY ... HAVING Clause 按dept_no分组 SELECT dept_no, avg(sales_amount) FROM sales_tbl GROUP BY dept_no; 分组前先执行条件比较 SELECT dept_no, avg(sales_amount) FROM sales_tbl WHERE sales_amount > 100 GROUP BY dept_no; 分组后,having操作 SELECT…