When retrieving monthly data from any datasource, how do CF
experts (of which I am not one) create results for time intervals
in which there are no results? I.E. Pulling event data by month,
how do I show that there was no activity for a given month? Thanks
in advance.
There is a way to make dempster's approach more efficient.
Step 1 - run your query from the db. (query 1)
Step 2 - Build a cold fusion query to get all the year-months
in the date range of interest (query 2)
Step 3 - Do a query of queries to get all the year-months in
query 2 that are not in query 1. (query 3)
Step 4 - Do a query of queries that unions queries 1 and 3.
It depends on what you use to control your output. If I
wanted to generate a report for a calendar year, I could create a
loop that goes through the 12 months to show activity for each
month:
Thanks ... that's exactly what I had been doing, but thought
that there may be some discreet CF function that would pad results
with place-holder records for months with missing data.
There is a way to make dempster's approach more efficient.
Step 1 - run your query from the db. (query 1)
Step 2 - Build a cold fusion query to get all the year-months
in the date range of interest (query 2)
Step 3 - Do a query of queries to get all the year-months in
query 2 that are not in query 1. (query 3)
Step 4 - Do a query of queries that unions queries 1 and 3.