/
Aggregate Functions

Aggregate Functions

COUNT

Returns the number of rows matching the query criteria

SELECT COUNT(*) FROM Employee

AVG

Returns the average of rows matching the query criteria

SELECT locationCode, AVG(maxHours) FROM Employee GROUP By locationCode

MIN

Returns the minimum number of rows matching the query criteria

SELECT MIN(maxHours) FROM Employee

MAX

Returns the maximum number of rows matching the query criteria

SELECT MAX(maxHours) FROM Employee

SUM

Returns the total sum of rows matching the query criteria

SELECT SUM(maxHours) FROM Employee

Related content

DATABASICS JDBC Driver
DATABASICS JDBC Driver
Read with this
SELECT Statements
SELECT Statements
More like this
JOIN Queries
Read with this
Time Summary Hours Domain
Time Summary Hours Domain
More like this
ZappySys JDBC-ODBC
ZappySys JDBC-ODBC
Read with this
Time Detail Hours Domain
Time Detail Hours Domain
More like this

2025 DATABASICS, Inc