I didn't test it but it should be straightforward
week:
Code:
Select
employee,
date_format(date, '%U') as Week,
count(*) as Amount
from orders
group by employee, date_format(date, '%U')
month:
Code:
Select
employee,
date_format(date, '%M') as Month,
count(*) as Amount
from orders
group by employee, date_format(date, '%M')
year:
Code:
Select
employee,
date_format(date, '%Y') as Year,
count(*) as Amount
from orders
group by employee, date_format(date, '%Y')
all:
Code:
Select
employee,
date_format(date, '%U') as Week,
date_format(date, '%M') as Month,
date_format(date, '%Y') as Year,
count(*) as Amount
from orders
group by
employee,
date_format(date, '%U'),
date_format(date, '%M'),
date_format(date, '%Y')
and so on...