SSIS Components for Google Contacts

Build 20.0.7656

Aggregate Functions

COUNT

Returns the number of rows matching the query criteria.

SELECT COUNT(*) FROM [My Contacts] WHERE Updated = '2017-03-15'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT Id) AS DistinctValues FROM [My Contacts] WHERE Updated = '2017-03-15'

AVG

Returns the average of the column values.

SELECT Fullname, AVG(WinProb) FROM [My Contacts] WHERE Updated = '2017-03-15'  GROUP BY Fullname

MIN

Returns the minimum column value.

SELECT MIN(WinProb), Fullname FROM [My Contacts] WHERE Updated = '2017-03-15' GROUP BY Fullname

MAX

Returns the maximum column value.

SELECT Fullname, MAX(WinProb) FROM [My Contacts] WHERE Updated = '2017-03-15' GROUP BY Fullname

SUM

Returns the total sum of the column values.

SELECT SUM(WinProb) FROM [My Contacts] WHERE Updated = '2017-03-15'

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