SSIS Components for Microsoft Planner

Build 24.0.9063

集計関数

COUNT

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

SELECT COUNT(*) FROM Tasks WHERE TaskId  = 'BCrvyMoiLEafem-3RxIESmUAHbLK'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT TaskId) AS DistinctValues FROM Tasks WHERE TaskId  = 'BCrvyMoiLEafem-3RxIESmUAHbLK'

AVG

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

SELECT startDateTime, AVG(AnnualRevenue) FROM Tasks WHERE TaskId  = 'BCrvyMoiLEafem-3RxIESmUAHbLK'  GROUP BY startDateTime

MIN

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

SELECT MIN(AnnualRevenue), startDateTime FROM Tasks WHERE TaskId  = 'BCrvyMoiLEafem-3RxIESmUAHbLK' GROUP BY startDateTime

MAX

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

SELECT startDateTime, MAX(AnnualRevenue) FROM Tasks WHERE TaskId  = 'BCrvyMoiLEafem-3RxIESmUAHbLK' GROUP BY startDateTime

SUM

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

SELECT SUM(AnnualRevenue) FROM Tasks WHERE TaskId  = 'BCrvyMoiLEafem-3RxIESmUAHbLK'

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