[MDEV-29743] how to apply coalesce or ifnull to a groupby Created: 2022-10-08 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery |
| Affects Version/s: | 10.6, 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip orleans | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux |
||
| Description |
|
this problem has probably been asked many times, because it's a point where mariadb differs from every other database.
the question is how to mask the NULL simply, without a subquery, using coalesce() or ifnull(), which works in any other database. |
| Comments |
| Comment by Philip orleans [ 2022-10-08 ] | ||||||||||||||
|
In SQL Server the output is correctr:
while in Mariadb this is wrong:
|