sql-tests.testcases.group-by.runHavingWithMultipleAggs.sql Maven / Gradle / Ivy
-- database: presto; tables: part; groups: group-by;
SELECT p_type, COUNT(*) FROM part GROUP BY p_type HAVING COUNT(*) > 20 and AVG(p_retailprice) > 1000
© 2015 - 2024 Weber Informatics LLC | Privacy Policy