Cmdlets for Google Campaign Manager

Build 21.0.7930

集計関数

COUNT

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

SELECT COUNT(*) FROM CampaignPerformance WHERE Device = 'Mobile devices with full browsers'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT Clicks) AS DistinctValues FROM CampaignPerformance WHERE Device = 'Mobile devices with full browsers'

AVG

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

SELECT Device, AVG(AnnualRevenue) FROM CampaignPerformance WHERE Device = 'Mobile devices with full browsers'  GROUP BY Device

MIN

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

SELECT MIN(AnnualRevenue), Device FROM CampaignPerformance WHERE Device = 'Mobile devices with full browsers' GROUP BY Device

MAX

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

SELECT Device, MAX(AnnualRevenue) FROM CampaignPerformance WHERE Device = 'Mobile devices with full browsers' GROUP BY Device

SUM

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

SELECT SUM(AnnualRevenue) FROM CampaignPerformance WHERE Device = 'Mobile devices with full browsers'

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930