sql-tests.testcases.window_functions.rowsUnbounded.sql Maven / Gradle / Ivy
-- database: presto; groups: window;
SELECT nationkey, min(nationkey) OVER (PARTITION BY regionkey ORDER BY comment ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS min FROM tpch.tiny.nation