sql-tests.testcases.group-by.runHavingWithAggExpr.sql Maven / Gradle / Ivy
-- database: presto; tables: workers; groups: group-by;
SELECT COUNT(*) FROM workers HAVING SUM(salary * 2)/COUNT(*) > 0
-- database: presto; tables: workers; groups: group-by;
SELECT COUNT(*) FROM workers HAVING SUM(salary * 2)/COUNT(*) > 0