FACT TABLE updated


I have an issue with my FACTS. I'm not sure what I should do with it.  

I have an registration fact table.  A student is registered in a College in January.  At the time of registration, the College is a public College.  Every February the colleges can be given a private status, and any registration after February will be at a 'Private College'.

When I try to analyse the number of students in a private college.  Anyone registered in January is public but after January is Private.  Once the college turns private, I would like to the registration to be classed as private.

I was thinking of adding a flag to my FACT private/Public.  And updating the Flag retrospectively if the College changes status.

Any thoughts?

Thanks for any help!
Coco BeansDesignerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Since the status will not change often, you can do that. Usually you should refrain from retrospective changes, but here it is ok.
A different approach is to store public/private time periods in a different table, and compare the registration date against this table. You would do that only if there are several switches of status, or you do not want to change FACTS entries.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
May be this flag shoud be in table with College properties?
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Simce you have to check against FACTS, no. If the flag had effect on all registrations, that would work, but here you need more than just a single global flag.
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

ste5anSenior DeveloperCommented:
hmm, the registration is the fact table as you said. Then the college is a dimension. According to your description a SCD-2 (slowly chaninging dimension, type 2).
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
That's oversized, ste5an, and against KISS. You do not have to document in each record why the status has been changed, because there is a single and simple event changing a lot of records.
ste5anSenior DeveloperCommented:
?? SCD2 is

SurrogateKey, NaturalKey, Name, Status, ValidFrom, ValidTo
1, MIT, Massachusetts Institute of Technolgy, public, 2000-01-01, 2017-1031
2, MIT, Massachusetts Institute of Technolgy, private, 2000-01-01, 2017-1031

Thus registration is

CollegeKey, StudentKey, RegistrationDate, FurtherFacts
1, 1, 2017-01-01,..
2, 2, 2017-01-01,..

As we have a strong time dependence, the question to be answered is not

When I try to analyse the number of students in a private college.


When I try to analyse the number of students in a private college at a given point in time.

Which can only be answered with a SCD2. The only shortcut - in the sense of KISS - is, when in the requirements is stated, that the given point in time is always now. Possible, but many years of experience tell me, that this is not true.
Coco BeansDesignerAuthor Commented:
Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.