JDBC Driver for ADP

Build 22.0.8462

Aggregate Functions

COUNT

Returns the number of rows matching the query criteria.

SELECT COUNT(*) FROM Workers WHERE AssociateOID = 'G3349PZGBADQY8H8'

COUNT(DISTINCT)

Returns the number of distinct, non-null field values matching the query criteria.

SELECT COUNT(DISTINCT AssociateOID) AS DistinctValues FROM Workers WHERE AssociateOID = 'G3349PZGBADQY8H8'

AVG

Returns the average of the column values.

SELECT WorkerID, AVG(AnnualRevenue) FROM Workers WHERE AssociateOID = 'G3349PZGBADQY8H8'  GROUP BY WorkerID

MIN

Returns the minimum column value.

SELECT MIN(AnnualRevenue), WorkerID FROM Workers WHERE AssociateOID = 'G3349PZGBADQY8H8' GROUP BY WorkerID

MAX

Returns the maximum column value.

SELECT WorkerID, MAX(AnnualRevenue) FROM Workers WHERE AssociateOID = 'G3349PZGBADQY8H8' GROUP BY WorkerID

SUM

Returns the total sum of the column values.

SELECT SUM(AnnualRevenue) FROM Workers WHERE AssociateOID = 'G3349PZGBADQY8H8'

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462