Excel Add-In for ADP

Build 24.0.9060

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) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060