Bug #33417 | group by 3 columns with MAX() produces incorrect results | ||
---|---|---|---|
Submitted: | 20 Dec 2007 19:38 | Modified: | 8 Nov 2009 16:18 |
Reporter: | Bruce Greenblatt | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.0.46, 5.0.52 | OS: | Windows |
Assigned to: | CPU Architecture: | Any |
[20 Dec 2007 19:38]
Bruce Greenblatt
[20 Dec 2007 19:39]
Bruce Greenblatt
Mysql dump output for ark_hist_volumesamples table
Attachment: mysqldump.sql (text/plain), 81.61 KiB.
[20 Dec 2007 19:43]
Bruce Greenblatt
I also saved the .myd, .myi and .frm files from the table if the mysqldump output is insufficient, and can upload those if necessary. Table uses the MYISAM engine.
[20 Dec 2007 19:46]
Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 5.0.51 or 5.0.52, and inform about the results.
[20 Dec 2007 20:11]
Bruce Greenblatt
I get identical results with 5.0.52: Server version: 5.0.52-classic-nt-log MySQL Enterprise Server - Classic (Commercial)
[12 Feb 2009 22:24]
Edward Strinden
The same thing happens with min(). I am just starting out learning mysql and as I was working through the ref man I discovered this error. command window contents below: mysql> select article, min(price) as price, dealer -> from shop -> group by article; +---------+-------+--------+ | article | price | dealer | +---------+-------+--------+ | 0001 | 3.45 | A | | 0002 | 10.99 | A | | 0003 | 1.25 | B | | 0004 | 19.95 | D | +---------+-------+--------+ 4 rows in set (0.00 sec) mysql> select * from shop; +---------+--------+-------+ | article | dealer | price | +---------+--------+-------+ | 0001 | A | 3.45 | | 0001 | B | 3.99 | | 0002 | A | 10.99 | | 0003 | B | 1.45 | | 0003 | C | 1.69 | | 0003 | D | 1.25 | | 0004 | D | 19.95 | +---------+--------+-------+ 7 rows in set (0.00 sec) mysql> status -------------- mysql Ver 14.14 Distrib 5.1.31, for Win32 (ia32) Connection id: 5 Current database: test Current user: root@localhost SSL: Not in use Using delimiter: ; Server version: 5.1.31-community MySQL Community Server (GPL) Protocol version: 10 Connection: localhost via TCP/IP Server characterset: latin1 Db characterset: latin1 Client characterset: latin1 Conn. characterset: latin1 TCP port: 3306 Uptime: 1 hour 59 min 0 sec
[8 Oct 2009 16:18]
MySQL Verification Team
I couldn't repeat anymore with current source server 5.0.87, please try to upgrade at least to the last release. Thanks in advance.
[9 Nov 2009 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".