Bug #100171 | Query not returning expected results | ||
---|---|---|---|
Submitted: | 9 Jul 2020 11:36 | Modified: | 9 Jul 2020 16:01 |
Reporter: | JACK DAWSON | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Workbench | Severity: | S7 (Test Cases) |
Version: | 8.0.15 | OS: | Windows (Microsoft Windows 8.1) |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
Tags: | WBBugReporter |
[9 Jul 2020 11:36]
JACK DAWSON
[9 Jul 2020 16:01]
MySQL Verification Team
Hi, This is not a bug. If you configure your MySQL server with "ONLY_FULL_GROUP_BY" to behave by standard this query will be illegal. If you, on the other hand, do not configure "ONLY_FULL_GROUP_BY" the query will be allowed to execute but there is nothing that promisses that the "name" and the max() will be from the same column. What you want it something like: > select name,surfacearea from country order by surfacearea desc limit 1; +--------------------+-------------+ | name | surfacearea | +--------------------+-------------+ | Russian Federation | 17075400.00 | +--------------------+-------------+ 1 row in set (0.00 sec) all best Bogdan