Skip to content
Advertisement

Group by date range on weeks/months interval

I’m using MySQL and I have the following table:

I want to be able to generate reports like this, where periods are done in the last 4 weeks:

or in the last 3 months:

Any ideas how to make select queries that can generate the equivalent date range and clicks count?

Advertisement

Answer

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