Group By
Group by allows you to select a result set and group it (or collapse the results) by a given set of fields. Remaining non-grouped fields are availale only to Aggregate Functions.
SELECT
SourceWordId,
Min(TargetWordId) as Min,
Max(TargetWordId) as Max,
Sum(TargetWordId) as Sum,
Avg(TargetWordId) as Avg,
Count(TargetWordId) as Count
FROM
WordList:Synonym
GROUP BY
SourceWordIdHome
The home page
SQL :: Aggregate Functions
Aggregate functions are used to evaluate multiple rows when collapsing a group of documents.
SQL :: Avg
Computes the average value of a numeric field within a specified schema.
SQL :: Count
Tallies the occurrences of a specific field within a given schema.
SQL :: Max
Computes the maximum value of a numeric field within a specified schema.
SQL :: Min
Computes the minimum value of a numeric field within a specified schema
SQL :: Sum
Computes the total or summation value of a numeric field within a specified schema
SQL::Keywords
A breakdown of all high-level statements available via the query handler.