Author |
Topic  |
|
RickyS
Starting Member
1 Posts |
Posted - 12/03/2013 : 10:57:34
|
I need to associate aggregate gross_revenue with calendar year, but do not have a date field that reflects payment dates, just contract periods a start_date and an end_date. The contract periods are typically 1 or 2 years and can start at any time I.e start_date 6/1/2012, end date 5/31/13. I think by finding the number of days that fall in each calendar year and storing in a temp table, I can create a simple formula to associate revenue to each year. Just not sure how to do it, any help would be greatly appreciated. |
|
Lamprey
Flowing Fount of Yak Knowledge
4614 Posts |
|
visakh16
Very Important crosS Applying yaK Herder
India
52326 Posts |
Posted - 12/03/2013 : 23:36:56
|
quote: Originally posted by RickyS
I need to associate aggregate gross_revenue with calendar year, but do not have a date field that reflects payment dates, just contract periods a start_date and an end_date. The contract periods are typically 1 or 2 years and can start at any time I.e start_date 6/1/2012, end date 5/31/13. I think by finding the number of days that fall in each calendar year and storing in a temp table, I can create a simple formula to associate revenue to each year. Just not sure how to do it, any help would be greatly appreciated.
Even with that, how would you determine what portion of revenue should go to each of the months? is it based on number of days?
------------------------------------------------------------------------------------------------------ SQL Server MVP http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
|
 |
|
|
Topic  |
|