Bug #31281 Group by and subquery issue in 5.0.41-community-nt-log
| Submitted: | 28 Sep 2007 15:09 | Modified: | 28 Oct 2007 15:24 |
|---|---|---|---|
| Reporter: | HECTOR JUAREZ | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | MySQL Server: DML | Severity: | S1 (Critical) |
| Version: | 5.0.41-community-nt-log | OS: | Windows |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | 5.0.41-community-nt-log, GROUP BY, subquery | ||
[28 Sep 2007 15:09]
HECTOR JUAREZ
[28 Sep 2007 15:24]
MySQL Verification Team
Thank you for the bug report. Could you please try the latest release?.
Thanks in advance.
mysql> select tr.value_col ,sum(t2.value2),
-> (select min(t2a.value2) from t1 t1a,t2 t2a
-> where t1a.id = t2a.idt1 and t1a.id1=t1.id1 and t2a.id3=t2.id3
-> ) as test
-> from t1,t2,t2_relleno_id3 tr
-> where t1.id = t2.idt1
-> and t2.value2 =
-> (select min(t2a.value2) from t1 t1a,t2 t2a
-> where t1a.id = t2a.idt1 and t1a.id1=t1.id1 and t2a.id3=t2.id3
-> )
-> and t2.id3 = tr.id
-> group by tr.value_col;
+-----------+----------------+------+
| value_col | sum(t2.value2) | test |
+-----------+----------------+------+
| value 1 | 8 | 2 |
| value 2 | 8 | 2 |
+-----------+----------------+------+
2 rows in set (0.16 sec)
mysql> select version();
+---------------------+
| version() |
+---------------------+
| 5.0.45-community-nt |
+---------------------+
1 row in set (0.01 sec)
mysql>
[29 Oct 2007 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".
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 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.