Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 549 Bytes

distinctsum.md

File metadata and controls

35 lines (23 loc) · 549 Bytes
description
This section contains reference documentation for the DISTINCTSUM function.

DISTINCTSUM

Returns the sum of distinct row values in a group

Signature

DISTINCTSUM(colName) or sum(distinct col)

Usage Examples

These examples are based on the Batch Quick Start.

SELECT DISTINCTSUM(runs) AS VALUE
FROM baseballStats
VALUE
13922
SELECT SUM(DISTINCT AtBatting) AS VALUE
FROM baseballStats
VALUE
244032