Im having a bit of a problem trying to figure out how to write a query i need.
I have a whole bunch of records in a mysql table, each record has a ‘datecreated’ column which is a datetime type and formatted like so: 0000-00-00 00:00:00
What i need to do is extract all records that are in the 11th month of this year, but they year needs to be taken from the servers date, so that when it ticks over into a new year, it wont still run the query from last year.
Does this make sense at all? … Im totally stumped how to get it going.
Cheers,
1 Answer