Oracle 视图 ALL_DIM_JOIN_KEY 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图ALL_DIM_JOIN_KEY存储字段的维表的连接信息,用于维度表之间的连接,可用于在维度数据表的一端查询其他维度的值,例如,用于报表汇总和报表比较等操作。
使用方法:
1. 首先确定字段的维表之间的连接关系;
2. 使用ALL_DIM_JOIN_KEY视图查询连接信息;
3. 通过连接信息确定维表字段之间的关联关系;
4. 确定两个字段之间的关联方式,使用 join/union 操作连接字段;
5. 对已关联字段,进行查询和分析,以便完成需求。
官方英文解释
ALL_DIM_JOIN_KEY
describes the joins between two dimension tables that are accessible to the current user. The join is always specified between a parent dimension level column and a child column.
Related Views
-
DBA_DIM_JOIN_KEY
describes all such joins in the database. -
USER_DIM_JOIN_KEY
describes all such joins owned by the current user.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the dimension |
|
|
|
Name of the dimension |
|
|
|
Join key ID (unique within a dimension) |
|
|
Name of the hierarchy level |
|
|
|
|
Ordinal position of the key column within the level |
|
|
Name of the hierarchy |
|
|
|
|
Owner of the join column table |
|
|
|
Name of the join column table |
|
|
|
Name of the join column |
|
|
Name of the child hierarchy level of the join key |
See Also:
-
“DBA_DIM_JOIN_KEY”
-
“USER_DIM_JOIN_KEY”