Hi again;
I am digging through the MySQL docs right now, but am having a little trouble formulating my seach.
Here's the deal:
I'm doing a select query on a table that has a date field.
I would like the result that is returned from the query to tag dates for each record from a date with a descriptive string.
For example, if the date falls between 9/1/03 and 10/31/03, I'd like a field value/string to be returned as "Fall", if the date falls between 11/1/03 and 3/1/04, return the string "Winter", etc.
This specific query syntax seems to work to limit one specific date range:
"SELECT TESTDATE, SCORE FROM DATAORF WHERE TESTDATE > '2003-08-31' AND TESTDATE < '2003-11-01' ORDER BY TESTDATE"
I suspect I may have to figure out how to do subqueries in order to get specific date ranges in separate WHERE clauses, but is there a way to return the specific descriptive string values? This seems maddeningly familiar, but I just can't remember how to do this sort of thing.
Thanks