23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OpenEdge <strong>SQL</strong> Functions<br />

This section provides detailed information on each <strong>SQL</strong> function. A description for each<br />

function provides the following information:<br />

• A definition of the function<br />

• The syntax of the function’s proper usage<br />

• A code sample that shows how the function works<br />

• Any associated notes<br />

About OpenEdge <strong>SQL</strong> functions<br />

A function is an <strong>SQL</strong> expression that returns a value based on arguments supplied.<br />

OpenEdge® <strong>SQL</strong> supports five aggregate functions and 90 scalar functions.<br />

Aggregate functions<br />

Aggregate functions calculate a single value for a collection of rows in a result table. If the<br />

function is in a statement with a GROUP BY clause, it returns a value for each group in the result<br />

table. Aggregate functions are also called set or statistical functions. Aggregate functions cannot<br />

be nested. The aggregate functions are:<br />

• AVG<br />

• COUNT<br />

• MAX<br />

• MIN<br />

• SUM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!