ODBC Driver for SurveyMonkey

Build 23.0.8839

集計関数

COUNT

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

SELECT COUNT(*) FROM MySurvey_Responses WHERE ChoiceText = 'blue'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT RespondentId) AS DistinctValues FROM MySurvey_Responses WHERE ChoiceText = 'blue'

AVG

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

SELECT ChoiceId, AVG(Size) FROM MySurvey_Responses WHERE ChoiceText = 'blue'  GROUP BY ChoiceId

MIN

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

SELECT MIN(Size), ChoiceId FROM MySurvey_Responses WHERE ChoiceText = 'blue' GROUP BY ChoiceId

MAX

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

SELECT ChoiceId, MAX(Size) FROM MySurvey_Responses WHERE ChoiceText = 'blue' GROUP BY ChoiceId

SUM

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

SELECT SUM(Size) FROM MySurvey_Responses WHERE ChoiceText = 'blue'

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