sql-tests.testcases.union.unionOrderBy.sql Maven / Gradle / Ivy
The newest version!
-- database: trino; tables: nation; groups: union;
SELECT count(*)
FROM nation
UNION ALL
SELECT sum(n_nationkey)
FROM nation
GROUP BY n_regionkey
UNION ALL
SELECT n_regionkey
FROM nation
ORDER BY 1 DESC