Cmdlets for Blackbaud Raisers Edge NXT

Build 24.0.9062

集計関数

COUNT

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

SELECT COUNT(*) FROM Constituents WHERE Type = 'Home'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT Id) AS DistinctValues FROM Constituents WHERE Type = 'Home'

AVG

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

SELECT AddressLines, AVG(AnnualRevenue) FROM Constituents WHERE Type = 'Home'  GROUP BY AddressLines

MIN

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

SELECT MIN(AnnualRevenue), AddressLines FROM Constituents WHERE Type = 'Home' GROUP BY AddressLines

MAX

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

SELECT AddressLines, MAX(AnnualRevenue) FROM Constituents WHERE Type = 'Home' GROUP BY AddressLines

SUM

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

SELECT SUM(AnnualRevenue) FROM Constituents WHERE Type = 'Home'

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