public interface WindowSpecificationRowsStep extends WindowSpecificationFinalStep
WindowSpecification
.
Example:
WindowSpecification spec =
DSL.partitionBy(BOOK.AUTHOR_ID)
.orderBy(BOOK.ID)
.rowsBetweenUnboundedPreceding()
.andCurrentRow();
XYZ*Step
types directly from client code
It is usually not recommended to reference any XYZ*Step
types
directly from client code, or assign them to local variables. When writing
dynamic SQL, creating a statement's components dynamically, and passing them
to the DSL API statically is usually a better choice. See the manual's
section about dynamic SQL for details: https://www.jooq.org/doc/latest/manual/sql-building/dynamic-sql.
Drawbacks of referencing the XYZ*Step
types directly:
Modifier and Type | Method and Description |
---|---|
WindowSpecificationRowsAndStep |
rangeBetweenCurrentRow()
Add a
RANGE BETWEEN CURRENT ROW ... |
WindowSpecificationRowsAndStep |
rangeBetweenFollowing(int number)
Add a
RANGE BETWEEN [number] FOLLOWING ... |
WindowSpecificationRowsAndStep |
rangeBetweenPreceding(int number)
Add a
RANGE BETWEEN [number] PRECEDING ... |
WindowSpecificationRowsAndStep |
rangeBetweenUnboundedFollowing()
Add a
RANGE BETWEEN UNBOUNDED FOLLOWING ... |
WindowSpecificationRowsAndStep |
rangeBetweenUnboundedPreceding()
Add a
RANGE BETWEEN UNBOUNDED PRECEDING ... |
WindowSpecificationFinalStep |
rangeCurrentRow()
Add a
RANGE CURRENT ROW frame clause to the window
specification. |
WindowSpecificationFinalStep |
rangeFollowing(int number)
Add a
RANGE [number] FOLLOWING frame clause to the window
specification. |
WindowSpecificationFinalStep |
rangePreceding(int number)
Add a
RANGE [number] PRECEDING frame clause to the window
specification. |
WindowSpecificationFinalStep |
rangeUnboundedFollowing()
Add a
RANGE UNBOUNDED FOLLOWING frame clause to the window
specification. |
WindowSpecificationFinalStep |
rangeUnboundedPreceding()
Add a
RANGE UNBOUNDED PRECEDING frame clause to the window
specification. |
WindowSpecificationRowsAndStep |
rowsBetweenCurrentRow()
Add a
ROWS BETWEEN CURRENT ROW ... |
WindowSpecificationRowsAndStep |
rowsBetweenFollowing(int number)
Add a
ROWS BETWEEN [number] FOLLOWING ... |
WindowSpecificationRowsAndStep |
rowsBetweenPreceding(int number)
Add a
ROWS BETWEEN [number] PRECEDING ... |
WindowSpecificationRowsAndStep |
rowsBetweenUnboundedFollowing()
Add a
ROWS BETWEEN UNBOUNDED FOLLOWING ... |
WindowSpecificationRowsAndStep |
rowsBetweenUnboundedPreceding()
Add a
ROWS BETWEEN UNBOUNDED PRECEDING ... |
WindowSpecificationFinalStep |
rowsCurrentRow()
Add a
ROWS CURRENT ROW frame clause to the window
specification. |
WindowSpecificationFinalStep |
rowsFollowing(int number)
Add a
ROWS [number] FOLLOWING frame clause to the window
specification. |
WindowSpecificationFinalStep |
rowsPreceding(int number)
Add a
ROWS [number] PRECEDING frame clause to the window
specification. |
WindowSpecificationFinalStep |
rowsUnboundedFollowing()
Add a
ROWS UNBOUNDED FOLLOWING frame clause to the window
specification. |
WindowSpecificationFinalStep |
rowsUnboundedPreceding()
Add a
ROWS UNBOUNDED PRECEDING frame clause to the window
specification. |
@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationFinalStep rowsUnboundedPreceding()
ROWS UNBOUNDED PRECEDING
frame clause to the window
specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationFinalStep rowsPreceding(int number)
ROWS [number] PRECEDING
frame clause to the window
specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationFinalStep rowsCurrentRow()
ROWS CURRENT ROW
frame clause to the window
specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationFinalStep rowsUnboundedFollowing()
ROWS UNBOUNDED FOLLOWING
frame clause to the window
specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationFinalStep rowsFollowing(int number)
ROWS [number] FOLLOWING
frame clause to the window
specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationRowsAndStep rowsBetweenUnboundedPreceding()
ROWS BETWEEN UNBOUNDED PRECEDING ...
frame clause to
the window specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationRowsAndStep rowsBetweenPreceding(int number)
ROWS BETWEEN [number] PRECEDING ...
frame clause to
the window specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationRowsAndStep rowsBetweenCurrentRow()
ROWS BETWEEN CURRENT ROW ...
frame clause to the
window specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationRowsAndStep rowsBetweenUnboundedFollowing()
ROWS BETWEEN UNBOUNDED FOLLOWING ...
frame clause to
the window specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationRowsAndStep rowsBetweenFollowing(int number)
ROWS BETWEEN [number] FOLLOWING ...
frame clause to
the window specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationFinalStep rangeUnboundedPreceding()
RANGE UNBOUNDED PRECEDING
frame clause to the window
specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationFinalStep rangePreceding(int number)
RANGE [number] PRECEDING
frame clause to the window
specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationFinalStep rangeCurrentRow()
RANGE CURRENT ROW
frame clause to the window
specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationFinalStep rangeUnboundedFollowing()
RANGE UNBOUNDED FOLLOWING
frame clause to the window
specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationFinalStep rangeFollowing(int number)
RANGE [number] FOLLOWING
frame clause to the window
specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationRowsAndStep rangeBetweenUnboundedPreceding()
RANGE BETWEEN UNBOUNDED PRECEDING ...
frame clause to
the window specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationRowsAndStep rangeBetweenPreceding(int number)
RANGE BETWEEN [number] PRECEDING ...
frame clause to
the window specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationRowsAndStep rangeBetweenCurrentRow()
RANGE BETWEEN CURRENT ROW ...
frame clause to the
window specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationRowsAndStep rangeBetweenUnboundedFollowing()
RANGE BETWEEN UNBOUNDED FOLLOWING ...
frame clause to
the window specification.@Support(value={AURORA_POSTGRES,DB2,INFORMIX,MARIADB,MYSQL_8_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER2012,SYBASE,TERADATA,VERTICA}) WindowSpecificationRowsAndStep rangeBetweenFollowing(int number)
RANGE BETWEEN [number] FOLLOWING ...
frame clause to
the window specification.Copyright © 2019. All rights reserved.