All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sql-tests.testcases.group-by.runHavingWithOrderBy.sql Maven / Gradle / Ivy

-- database: presto; requires: com.facebook.presto.tests.ImmutableTpchTablesRequirements; tables: workers; groups: group-by;
SELECT id_department, COUNT(*) FROM workers GROUP BY id_department HAVING COUNT(*) > 1 ORDER BY id_department desc




© 2015 - 2024 Weber Informatics LLC | Privacy Policy