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

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

There is a newer version: 0.289
Show newest version
-- database: presto; groups: window;
select orderkey, suppkey,
discount,
lead(discount) over (partition by suppkey order by orderkey desc) next_discount,
extendedprice,
lag(extendedprice) over (partition by discount order by extendedprice range current row) previous_extendedprice
from tpch.tiny.lineitem where partkey = 272




© 2015 - 2024 Weber Informatics LLC | Privacy Policy