×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Insurance Policy Snapshot

Insurance Policy Snapshot

Insurance Policy Snapshot

(OP)
Hi,

I have a question about modeling a fact table representing Insurance policies.

We get a lot of requests for "How many policies were effective in 2011?" or "How Many Policies were Cancelled in 2012?".

My guess would be an accumulating snapshot, but how do I model policies that have had 4 terms? Do I just have 4 separate rows in the snapshot table for each year the policy was active?

thanks

scott

RE: Insurance Policy Snapshot

I would suggest using the start and end date of the policy and a seperate table containing all years and project the data using a theta-join, like (just an example):

SELECT YT.YEAR,P.POLICY,P.STARTDATE,P.ENDDATE FROM POLICIES P
,YEAR_TABLE YT
WHERE YT.YEAR BETWEEN YEAR(P.STARTDATE) AND YEAR(ENDDATE)

You may need to add some logic to capture different scenario's (depending on your business logic)

Don't see the need to physically build a fact to answer the type of questions you are being asked.

Ties Blom

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close