SSIS Components for UPS

Build 20.0.7587

Aggregate Functions

COUNT

Returns the number of rows matching the query criteria.

SELECT COUNT(*) FROM Senders WHERE SenderID = '25'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT FirstName) AS DistinctValues FROM Senders WHERE SenderID = '25'

AVG

Returns the average of the column values.

SELECT Phone, AVG(AnnualRevenue) FROM Senders WHERE SenderID = '25'  GROUP BY Phone

MIN

Returns the minimum column value.

SELECT MIN(AnnualRevenue), Phone FROM Senders WHERE SenderID = '25' GROUP BY Phone

MAX

Returns the maximum column value.

SELECT Phone, MAX(AnnualRevenue) FROM Senders WHERE SenderID = '25' GROUP BY Phone

SUM

Returns the total sum of the column values.

SELECT SUM(AnnualRevenue) FROM Senders WHERE SenderID = '25'

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7587