Kimball Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Student Profile

2 posters

Go down

Student Profile Empty Student Profile

Post  bajopalabra Fri Jun 14, 2013 4:12 pm

Hi

I trying to design an academic dw

I have created:

FACT Course Appointments
sk_student
sk_course
-----------
appointed  ( equals 1 always)

these sks conform a unique id for the fact table

the issue is that I need to record the student profile too, in such a case I have added sk_profile:

FACT Course Appointments
sk_student
sk_course
sk_profile
-----------
appointed  ( equals 1 always)
...

I don't know if it is right or wrong
because sk_profile doesn't has nothing to do with the "uniqueness" of the pk

Furthermore,
I'd need to add more profiles to the fact table, like:


FACT Course Appointments
sk_student
sk_course
sk_profile_academic
sk_profile_social
sk_profile_economic
sk_profile_health
...
-----------
appointed  ( equals 1 always)
...

I mean, they are not needed for the key to be unique

I have a temptation to add more sks like these
because it better explain the "transaction" (for a further analysis)

but I don't know how if it would cause me any problem or limitation in the future...

can anyone guide me?

TIA

bajopalabra

Posts : 12
Join date : 2012-08-24
Age : 49

Back to top Go down

Student Profile Empty Re: Student Profile

Post  ngalemmo Fri Jun 14, 2013 4:59 pm

A PK has nothing to do with what dimensions a fact table contains.  If additional dimension are needed to provide context, so be it.  Include them in the fact.

A PK is a logical concept in ER modeling to uniquely identify a row.  It has nothing to do with dimensions in a fact fact table other than you may identify one or more of those columns as being part of the PK.  They are different concepts for different purposes.  There is no requirement that a fact table has a PK, unless you need it to update rows in the table.
ngalemmo
ngalemmo

Posts : 3000
Join date : 2009-05-15
Location : Los Angeles

http://aginity.com

Back to top Go down

Student Profile Empty ok, well

Post  bajopalabra Fri Jun 14, 2013 5:36 pm

oh, thank you ngalemmno

that's the kind of authorized answer I needed

recent readings in some forums have lead me to confusion

However, following the previous logic...

in the case of "Academic Profile"
users need to filter and group by specific values
but they also need to average (or sum, etc) that values

then I'm thinking in placing the values of "Academic Profile"
in both Fact and Dim tables

I know that it's no such an elegant design
but I think it will be effective

please, what do you think about that?

thanks a lot


Last edited by bajopalabra on Fri Jun 14, 2013 5:38 pm; edited 1 time in total (Reason for editing : syntax)

bajopalabra

Posts : 12
Join date : 2012-08-24
Age : 49

Back to top Go down

Student Profile Empty Re: Student Profile

Post  ngalemmo Sat Jun 15, 2013 2:43 am

If you have a profile dimension, keep the attributes there.  Do not put them in the fact table.  Making a fact table wider than it needs to be degrades performance.
ngalemmo
ngalemmo

Posts : 3000
Join date : 2009-05-15
Location : Los Angeles

http://aginity.com

Back to top Go down

Student Profile Empty Re: Student Profile

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum