21.10.2013 Views

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

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.

Available in: DSQL, ESQL, PSQL<br />

Added in: IB<br />

Changed in: <strong>2.1</strong><br />

Aggregate functions<br />

MAX()<br />

Description: MAX returns the maximum argument value in the group. If the argument is a string, this is the<br />

value that comes last when the active collation is applied.<br />

Result type: Varies<br />

Syntax:<br />

MAX (expression)<br />

• If the group is empty or contains only NULLs, the result is NULL.<br />

• Since <strong>Firebird</strong> <strong>2.1</strong>, this function fully supports text BLOBs of any size and character set.<br />

Available in: DSQL, ESQL, PSQL<br />

Added in: IB<br />

Changed in: <strong>2.1</strong><br />

MIN()<br />

Description: MIN returns the minimum argument value in the group. If the argument is a string, this is the value<br />

that comes first when the active collation is applied.<br />

Result type: Varies<br />

Syntax:<br />

MIN (expression)<br />

• If the group is empty or contains only NULLs, the result is NULL.<br />

• Since <strong>Firebird</strong> <strong>2.1</strong>, this function fully supports text BLOBs of any size and character set.<br />

122

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

Saved successfully!

Ooh no, something went wrong!