2
I have a sales chart that records the date and time of sale.
The output format is this:
"2018-09-02 15:00:08"
I wanted to get the total sales per month but I’m having difficulty to assemble the query. How can I filter only the month from a more complex data like the one I have?
The result should be similar to this:
January - 10 sales
February - 5 sales
Table structure:
id | data_hora | total_pagamento