sql-tests.testcases.group-by.runHavingWithAggExpr.sql Maven / Gradle / Ivy
-- database: presto; requires: com.facebook.presto.tests.ImmutableTpchTablesRequirements; tables: workers; groups: group-by;
SELECT COUNT(*) FROM workers HAVING SUM(salary * 2)/COUNT(*) > 0
© 2015 - 2025 Weber Informatics LLC | Privacy Policy