VistaDB 5
MIN

Returns the minimum numeric value in a column.

May not be used with bit columns. Subqueries and additional aggregate functions are not allowed.

MIN(colName) Applies the aggregate function to all values for the given column.

MIN(ALL colName) Applies the aggregate function to all values. ALL is the default.

MIN(DISTINCT colName) evaluates colName for each unique row in a table. DISTINCT is not meaningful with MIN and is available for SQL-92 compatibility only.

During join queries a colName must be fully qualified using the table name as well.

Example:

MIN(table.colName)



Remarks

DISTINCT is not meaningful with the MIN command and should not be used.

Example

SELECT MIN(column) FROM table
See Also