Something like:
SELECT MONTH(*date?*)
FROM
//Not sure what goes here
LIMIT 0,6
I know its simple, but I want to know how to get a list of the last six months in case i ever need to Join to it. Useful if getting past data and using:
IFNULL(data, 0)
OUTPUT
If you want it to include the current month, then just start with 5 and go to 0 instead of 6 to 1.
If you want rows, do this:
OUTPUT