I have a mysql database with a datestamp field for entries. I'd really like to separate out the year, quarter, month and day into individual columns. I can make the new columns without a problem but I don't know how to write a query that does this easily. I've been playing around with things like this
SELECT MONTH();
FROM `datestamp`
But haven't had any joy...
Any help gratefully received :-)