Hi everyone!
I'm having a lot of difficulty with this one. Here's a tiny piece of the table:
The cohorts represent age groups, in 5-year increments. So Cohort 1 might be ages [16-20], Cohort 2 might be ages [21-25]
I want to calculate Additions =((0.8*Additions) + (0.2*Additions for the previous cohort)). My query runs once every "year" to calculate the additions and subtractions for the next year, but people age one year so the additions and subtractions have to be modified.
Any suggestions?
I'm having a lot of difficulty with this one. Here's a tiny piece of the table:
Code:
Year | Profession | Cohort | Supply | Additions | Subtractions
2000 Doctor 1 100 10 10
2000 Doctor 2 100 10 10
The cohorts represent age groups, in 5-year increments. So Cohort 1 might be ages [16-20], Cohort 2 might be ages [21-25]
I want to calculate Additions =((0.8*Additions) + (0.2*Additions for the previous cohort)). My query runs once every "year" to calculate the additions and subtractions for the next year, but people age one year so the additions and subtractions have to be modified.
Any suggestions?
Last edited: