I have the following query:
SELECT name, commission, timestamp, state_name
FROM magry_awoaffiliate_commission c
INNER JOIN magry_users u ON (c.user_id = u.id)
INNER JOIN magry_virtuemart_userinfos v ON (c.user_id = v.virtuemart_user_id)
INNER JOIN magry_virtuemart_states using (virtuemart_state_id)
ORDER BY timestamp DESC
And I want to filter only the period of January 2017 for example, how do I?
Below the query result
name | comission | timestamp | state_name
Leticia | 3.76800 | 1489702437 | Paraná
José | 7.76000 | 1489614271 | São paulo
and other results below.