SQL is a set-oriented language. It is particularly effective when accessing a set of rows, as opposed to a single row at a time.
In most languages, complex data analysis requires that data be accessed in a loop, processing a row at a time. However, ANSI SQL-99 and 2003 include the following features that enable complex data analysis within a SELECT statement:
ANSI SQL-99: GROUP BY enhancements
ANSI SQL-2003: window framing
SAP HANA supports these SQL features.
GROUP BY Enhancements
Online Analytical Processing (OLAP) GROUP BY enhancements allow application developers to write complex SQL statements to generate valuable results:
To generate multiple groupings of data in a single SELECT statement, use GROUP BY GROUPING SETS.
To create a sparse multi-dimensional result set that contains multiple levels of aggregation, use GROUP BY ROLLUP.
To create a multi-dimensional cube as a result set, use GROUP BY CUBE.
These features are standard with ANSI SQL-99 and are supported by SAP HANA.