Bug #38858 | ORDERGROUP BY construct | ||
---|---|---|---|
Submitted: | 18 Aug 2008 13:56 | Modified: | 19 Aug 2008 10:38 |
Reporter: | Lig Isler-Turmelle | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Parser | Severity: | S4 (Feature request) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[18 Aug 2008 13:56]
Lig Isler-Turmelle
[18 Aug 2008 14:06]
MySQL Verification Team
Correction to query: SELECT count(*) total, name "last joined", date FROM roster GROUP BY team_id ORDERGROUP BY date DESC ORDER BY team_id;
[19 Aug 2008 10:38]
Susanne Ebrecht
Please consider, our group by is not SQL Standard confirm. We already have additional features here. [[ORDER BY [DERIVED {GROUP | ALL}] col [ ASC | DESC] [, ...]][, ...] ] Default: ORDER BY DERIVED ALL With SELECT .... GROUP BY ... ORDER BY DERIVED GROUP col; There will be a sorting for the rows from every column. WITH SELECT ... ORDER BY DERIVED ALL col; there will be a sorting for the whole result. Because DERIVED ALL is default you just can use: SELECT .... ORDER BY col; here. I already explained what I mean with DERIVED {GROUP | ALL} at bug #38859. Please also read there if you have problems to understand my short explanation here.