×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

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!

*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

How to add new dimension record

How to add new dimension record

How to add new dimension record

(OP)
I am very new to this and this question is more regarding design then anything else so I am sure there is more then one right answer..

I have a dimension table.
I have a fact table.
I have a staging table.

A new record shows up in the staging table.  I want to add that table to fact table but the dimension does not exist.

What is the best course of action?

Do I error out the record?  
Do I create the dimension record?

RE: How to add new dimension record

You should load and process your dimensions before it's related fact records.  If you still have a fact record without corresponding dimension(s), you can do a couple of things based on your business requirements:  1.  Error it out and put it in an error table for further review.  2.  Assign it to a default 'UNKNOWN' dimension.  3.  Add a dimension record with the business key, but with as yet to be determined attributes.  

It really depends on why you are getting a fact record without the dimension(s) records and what your business requirements are for your environment.

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! Already a Member? Login

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