Select RANGE() in MySQL / MariaDB ?
Is it possible to create a stored procedure or custom function in MariaDB / MySQL that allows me to group in a range?
For example I have a database of:
- Gender
- Age
- Month
I want an output similar to:
month | gender | age_from | age_to | count |
01 | 1 | 10 | 15 | 500 |