CData Python Connector for Tableau CRM Analytics

Build 23.0.8839

集計関数

COUNT

クエリ条件に一致する行の数を返します。

SELECT COUNT(*) FROM Dataset_Opportunity WHERE StageName = 'Closed Won'

COUNT(DISTINCT)

クエリ条件に一致する、null 以外の個別のフィールド値の数を返します。

SELECT COUNT(DISTINCT Name) AS DistinctValues FROM Dataset_Opportunity WHERE StageName = 'Closed Won'

AVG

カラムの値の平均を返します。

SELECT CloseDate, AVG(Size) FROM Dataset_Opportunity WHERE StageName = 'Closed Won'  GROUP BY CloseDate

MIN

カラムの値の最小値を返します。

SELECT MIN(Size), CloseDate FROM Dataset_Opportunity WHERE StageName = 'Closed Won' GROUP BY CloseDate

MAX

カラムの値の最大値を返します。

SELECT CloseDate, MAX(Size) FROM Dataset_Opportunity WHERE StageName = 'Closed Won' GROUP BY CloseDate

SUM

カラムの値の合計を返します。

SELECT SUM(Size) FROM Dataset_Opportunity WHERE StageName = 'Closed Won'

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839