SSIS Components for FHIR

Build 24.0.9062

集計関数

COUNT

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

SELECT COUNT(*) FROM Patient WHERE [name-use] = 'Bob'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT Id) AS DistinctValues FROM Patient WHERE [name-use] = 'Bob'

AVG

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

SELECT [address-city], AVG(AnnualRevenue) FROM Patient WHERE [name-use] = 'Bob'  GROUP BY [address-city]

MIN

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

SELECT MIN(AnnualRevenue), [address-city] FROM Patient WHERE [name-use] = 'Bob' GROUP BY [address-city]

MAX

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

SELECT [address-city], MAX(AnnualRevenue) FROM Patient WHERE [name-use] = 'Bob' GROUP BY [address-city]

SUM

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

SELECT SUM(AnnualRevenue) FROM Patient WHERE [name-use] = 'Bob'

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