Timeline for MySQL - GROUP BY not working with multiple CASE WHEN statements
Current License: CC BY-SA 4.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 7 at 15:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Aug 2 at 13:05 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 4 at 8:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 1, 2023 at 10:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 25, 2023 at 18:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 20, 2023 at 16:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 5, 2022 at 21:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 20, 2020 at 22:28 | comment | added | Rick James |
Start by making a separate table with just the currency_code and conversion rate. That will be easier to update. Then use a JOIN and toss the CASE .
|
|
Jul 20, 2020 at 18:29 | answer | added | user212533 | timeline score: 0 | |
Jul 20, 2020 at 18:08 | answer | added | Lennart - Slava Ukraini | timeline score: 0 | |
Jul 20, 2020 at 16:27 | comment | added | Akina |
Imagine that a campaign have 2 rows with different currencies. What SUM() do you want to be returned by the CASE? You need SUM(CASE currency.name ...) .
|
|
S Jul 20, 2020 at 11:03 | history | suggested | nbk | CC BY-SA 4.0 |
indent code corrected
|
Jul 20, 2020 at 9:47 | review | Suggested edits | |||
S Jul 20, 2020 at 11:03 | |||||
Jul 20, 2020 at 9:47 | comment | added | nbk | can you please add also the data inclusive table definitions that you got regarding your results, a sanitized version is enough and the expected result would also help | |
Jul 20, 2020 at 9:43 | history | edited | Ian Yu | CC BY-SA 4.0 |
added 48 characters in body
|
Jul 20, 2020 at 7:06 | review | First posts | |||
Jul 20, 2020 at 12:04 | |||||
Jul 20, 2020 at 6:52 | history | asked | Ian Yu | CC BY-SA 4.0 |