Skip to content
Advertisement

Using CASE WHEN DATE Statement in MariaDB 10.2.15

I created a query to display the ScanIn Field in one month on each date

Code :

In Database

Result From Database Click Here

I want the results of the query to display

But with the query I made unsuccessfully, is there a way to solve it?

Thank you in advance

Advertisement

Answer

I think you want conditional aggregation:

I don’t recommend using a dash for missing data. Just use NULL — what SQL uses.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement