sql-tests.testcases.group-by.runHavingWithOrderBy.sql Maven / Gradle / Ivy
-- database: presto; tables: workers; groups: group-by;
SELECT id_department, COUNT(*) FROM workers GROUP BY id_department HAVING COUNT(*) > 1 ORDER BY id_department desc
-- database: presto; tables: workers; groups: group-by;
SELECT id_department, COUNT(*) FROM workers GROUP BY id_department HAVING COUNT(*) > 1 ORDER BY id_department desc