Bug #636 | calcuations on aggregate functions results in NULLs | ||
---|---|---|---|
Submitted: | 11 Jun 2003 8:33 | Modified: | 11 Jun 2003 10:43 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 3.23.51-nt | OS: | Windows (Windows 2000) |
Assigned to: | CPU Architecture: | Any |
[11 Jun 2003 8:33]
[ name withheld ]
[11 Jun 2003 10:43]
MySQL Verification Team
I tested your query against our last release 3.23.56: mysql> select s1.id, s1.number, -> count(distinct s2.number) + 0 as rank -> from silly s1 left join silly s2 -> on s1.number > s2.number -> group by s1.id, s1.number -> order by rank; +----+--------+------+ | id | number | rank | +----+--------+------+ | 5 | 3 | 0 | | 4 | 7 | 1 | | 1 | 10 | 2 | | 7 | 10 | 2 | | 8 | 10 | 2 | | 2 | 20 | 3 | | 6 | 20 | 3 | | 3 | 100 | 4 | +----+--------+------+ 8 rows in set (0.00 sec) Please upgrade your version for this one.