Skip to content
Advertisement

How to create group by age employee in php myqsl

I want to create chart.js for avarage age in my company. But I can’t create the query.

Advertisement

Answer

Presumably, employee_birthday is actually a date. At last that would make sense to me.

If you want employees between 20 and 30, then the logic is something like this:

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