sql-tests.testcases.group-by.runHavingWithExpr.sql Maven / Gradle / Ivy
-- database: presto; tables: workers; groups: group-by;
SELECT COUNT(*) FROM workers GROUP BY id_department * 2 HAVING SUM(log10(salary + 1)) > 0
-- database: presto; tables: workers; groups: group-by;
SELECT COUNT(*) FROM workers GROUP BY id_department * 2 HAVING SUM(log10(salary + 1)) > 0