Extensions to the ANSI SQL standard to include complex data analysis were introduced as an amendment to the 1999 SQL standard. Sybase IQ added portions of these SQL enhancements in previous releases. Sybase IQ 12.7, however, contains comprehensive support for the extensions.
These analytic functions, which offer the ability to perform complex data analysis within a single SQL statement, are sometimes referred to as OLAP, or On Line Analytical Processing, whose functions include:
GROUP BY clause extensions – CUBE and ROLLUP
Analytical functions:
Simple aggregates – AVG, COUNT, MAX, MIN, and SUM, STDDEV and VARIANCE
All simple aggregates, except the Grouping() function,
can be used with a windowed function.
Window functions:
Windowing aggregates – AVG, COUNT, MAX, MIN, and SUM
Ranking functions – RANK, DENSE_RANK, PERCENT_RANK
Statistical functions – STDDEV, STDDEV_SAMP, STDDEV_POP, VARIANCE, VAR_SAMP, and VAR_POP
Distribution functions – PERCENTILE_CONT and PERCENTILE_DISC
Numeric functions – WIDTH_BUCKET, CEIL, LN, EXP, POWER, SQRT, and FLOOR
See Chapter 4, “Using OLAP,” in the Sybase IQ Performance and Tuning Guide for details.
The following SQL/OLAP functions are new in Sybase IQ 12.7:
STDDEV_POP Computes the standard deviation of a population consisting of a numeric expression as a DOUBLE
STDDEV_SAMP Computes the standard deviation of a sample consisting of a numeric expression as a DOUBLE
VAR_POP Computes the statistical variance of a population consisting of a numeric expression as a DOUBLE
VAR_SAMP Computes the statistical variance of a sample consisting of a numeric expression as a DOUBLE
See Chapter 5, “SQL Functions,” in the Sybase IQ Reference Manual for information and syntax.