Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个事实表,其中有一列将保存两个值之一(占用/空置)。是否有必要为此创建一个 Dim 表?
如果您只需要案例计数,那么 Occupancy 是一个值为 0/1 而不是维度的度量,因此您将没有维度表。
如果你想,我不知道,按入住率和地区分析租金和税收,那么入住率是一个维度。同样,它应该存储为 0/1,因为在事实表中减小列宽是必要的。您的报告工具可能允许您将 0/1 的转换存储为元数据,但您最好使用维度表,因为这使您的数据仓库应用程序保持中立。