My database of customers has customers with begin_date and end_date.
Each year has 13 periods (each 4 weeks begins a new period).
I have a problem with calculating number of active customers per
periods, 13 of them.
For example:
If begin_date of customer A is 02-01-07 and end_date is not filled in
the customer should be counted as active till today (19-03-2007) which
means that he should be counted as active in the periods 01, 02, 03 if
I run a query today. When eind_date is filled in the customer should
not appear as active in a period of eind_date.
I hope that somebody can help me with this one?!!!
Any help will be highly appreciated. Thanks in advance!
Haan