Bug #20024 Single Column Distict Query not performing as expected
| Submitted: | 23 May 2006 16:36 | Modified: | 23 May 2006 22:19 |
|---|---|---|---|
| Reporter: | Michael Furdyk | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 5.0.19 | OS: | Linux (RHEL4) |
| Assigned to: | CPU Architecture: | Any |
[23 May 2006 16:36]
Michael Furdyk
[23 May 2006 22:19]
Hartmut Holzgraefe
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: See http://dev.mysql.com/doc/refman/5.0/en/group-by-hidden-fields.html In standard SQL, you would have to add customer.name to the GROUP BY clause. In MySQL, the name is redundant. Do not use this feature if the columns you omit from the GROUP BY part are not constant in the group. The server is free to return any value from the group, so the results are indeterminate unless all values are the same.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.049 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.