Does anyone have a recommendation on the best way to create a table using dates. This is a custom table we are building in mysql. From a reporting stand point, the data will need to be compared by this year to last year and this month to last month (quarter to quarter, etc.). so a typical report would look like:
credit code 2009 goal 2008 goal
A 20 25
B 10 15
This would be a ytd example. Currently the date data is in one field called date and looks like:
YTD2009
YTD2008
Jan2008
Jan2009
This is not giving me my nice comparison on a report because it is in the table with 2009 listed first and 2008 after, giving:
credit code 2009 goal 2008 goal
A 20
B 10
A 25
B 15
Any advice on best way to set up dates in a custom table in mysql that would be tied into other tables to be able to report on comparisons by dates: months, quarters, years?
thanks,
Jennifer
credit code 2009 goal 2008 goal
A 20 25
B 10 15
This would be a ytd example. Currently the date data is in one field called date and looks like:
YTD2009
YTD2008
Jan2008
Jan2009
This is not giving me my nice comparison on a report because it is in the table with 2009 listed first and 2008 after, giving:
credit code 2009 goal 2008 goal
A 20
B 10
A 25
B 15
Any advice on best way to set up dates in a custom table in mysql that would be tied into other tables to be able to report on comparisons by dates: months, quarters, years?
thanks,
Jennifer