jw970170
Programmer
- Aug 8, 2005
- 38
Hi,
I am just starting learning about the star model and am wondering if a dimension table can contain only one attribute. For example, check out the tables below
FACT_TABLE
StreamTypeID (foreign Key)
Value
DIM_STREAM_TYPE
StreamTypeID (key)
StreamType
The DIM_STREAM_TYPE table really only contains one attribute, StreamType (StreamTypeID is just a generated number used as a surrogate key). And suppose that StreamType could contain one of 10 values. It is a dimension. I could wish to view my data as a sum of the first stream type, or second stream type, etc. However, I could just as easily include the dimension in the fact table. How would one generally handle this situation?
I am just starting learning about the star model and am wondering if a dimension table can contain only one attribute. For example, check out the tables below
FACT_TABLE
StreamTypeID (foreign Key)
Value
DIM_STREAM_TYPE
StreamTypeID (key)
StreamType
The DIM_STREAM_TYPE table really only contains one attribute, StreamType (StreamTypeID is just a generated number used as a surrogate key). And suppose that StreamType could contain one of 10 values. It is a dimension. I could wish to view my data as a sum of the first stream type, or second stream type, etc. However, I could just as easily include the dimension in the fact table. How would one generally handle this situation?