SELECT - SQL Command - GROUP BY Clause
| Visual FoxPro 9.0 SP2 |
| SELECT - SQL Command - GROUP BY Clause |
| See Also |
|
The GROUP BY clause specifies one or more columns used to group rows returned by the query. Columns referenced in the SQL SELECT statement list, except for aggregate expressions, must be included in the GROUP BY clause. You cannot group by Memo, General, or Blob fields.
For the complete syntax, see SELECT - SQL Command.
The detailed syntax for the GROUP BY clause is as follows:
[GROUP BY Column_List_Item [, ...] ] |
Parameters
- Column_List_Item
-
Specifies one or more columns used to group rows returned by the query.
Column_List_Item can be one of the following:
-
A field in a table in the FROM clause or a subquery.
-
A table alias from the SQL SELECT list.
-
A numeric expression indicating the location of the column in the result table. The leftmost column is number 1.
Remarks
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08