Week Ending Grouping in SQL/ColdFusion
Greetings,
I am working on an analytics app and have been asked to create a chart based upon the results of every week. So for example, we have been gathering data since January. Managers want to see the results from each week in a chart format (I will probably put the results in a table for them as well.
Anyway, here is my conundrum, the db has a date field. I could write several QoQs from my main query and code them in such a way as to pull every week (something along the lines of assigning a date to a variable, then adding days to it for each week...perhaps in a loop). But I thought there must be a more efficient way. Does anyone have any thoughts on this?
Thanks in advance,
Clay
