USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Copy the GROUP BY fields into the ORDER BY clause of a SQL statement variable
Sets the ORDER BY clause to match the current GROUP BY fields. Pass true to exclude ID fields from the sort order, which is useful when grouping by descriptive columns alongside surrogate keys.
| Parameter | Description |
|---|---|
| cmd | SQL statement variable name |
| Argument 0 | true to exclude ID fields from the ORDER BY, false to include them |
SqlStatement.SetOrderByToGroupBy "SQL statement variable name", "true to exclude ID fields from the ORDER BY, false to include them"