CData SSIS Components for Amazon S3 2019J - Online Help

集計関数

CData SSIS Components for Amazon S3 2019J - Build 19.0.7362

COUNT

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

SELECT COUNT(*) FROM Buckets WHERE Name = 'TestBucket'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT Name) AS DistinctValues FROM Buckets WHERE Name = 'TestBucket'

AVG

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

SELECT OwnerId, AVG(AnnualRevenue) FROM Buckets WHERE Name = 'TestBucket'  GROUP BY OwnerId

MIN

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

SELECT MIN(AnnualRevenue), OwnerId FROM Buckets WHERE Name = 'TestBucket' GROUP BY OwnerId

MAX

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

SELECT OwnerId, MAX(AnnualRevenue) FROM Buckets WHERE Name = 'TestBucket' GROUP BY OwnerId

SUM

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

SELECT SUM(AnnualRevenue) FROM Buckets WHERE Name = 'TestBucket'

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