Jump to content

Group by (SQL)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by CodeNaked (talk | contribs) at 16:12, 20 September 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A GROUP BY statement in SQL specifies that a SQL SELECT statement returns a list that is grouped by one or more columns, usually in order to apply some sort of aggretate function to certain columns.

Examples: