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

sql-tests.testcases.window_functions.rowsFirstLast.sql Maven / Gradle / Ivy

There is a newer version: 0.289
Show newest version
-- database: presto; groups: window;
select orderkey, suppkey, extendedprice,
first_value(extendedprice) over (partition by suppkey order by extendedprice desc rows between unbounded preceding and unbounded following),
last_value(extendedprice) over (partition by suppkey order by extendedprice desc rows between unbounded preceding and unbounded following)
from tpch.tiny.lineitem where partkey = 272




© 2015 - 2024 Weber Informatics LLC | Privacy Policy