i wonder how can i order my statement interm of "ORDER BY FORMAT(Date, 'mmmm')" with using this it will order by alphabethical but i want it order by month... i had try "ORDER BY FORMAT(Date, 'mm')" but due to at the begining i have "SELECT FORMAT(Date, 'mmmm')FROM TABLE"
my actual statement will look like this
"SELECT FORMAT(Date, 'mmmm')AS DateMonth, COUNT(x) AS CounterX FROM Table WHERE FORMAT(Date, 'mmmm') BETWEEN 'January' AND 'August' GROUP BY FORMAT(Date, 'mmmm') AND ORDER BY FORMAT(Date, 'mmmm')ASC"...
i want it order by month not alphabetical....
pls adviced... thanks in advanced.