高级检索

    数据仓库中维的建模和查询

    MODELING AND QUERY OF DIMENSION FOR DATA WAREHOUSES

    • 摘要: 维是数据仓库的重要组成部分 ,也是 OL AP的主要查询对象 ,但标准的星形 /雪花模型对实际应用中维的建模存在明显缺陷 ,而且 SQL 语言对维实体、维层次结构不能提供直接、有效的支持 ,使得 OL AP查询的表达较为繁琐、冗长 .为此 ,提出了一个基于关系数据库的 SQL( D)数据模型 ,它给出了层次链、层次树、维的正式定义 ,支持不平衡、异构的维层次结构 ;并对 SQL 作了相应的扩充 ,支持维的定义、维层次比较、维的引用和维聚集层次的指定 ,使得原先冗长、复杂的 OL AP查询表达式变得简洁、易于理解 .最后对扩充的语义给出实现算法

       

      Abstract: The dimension is a key component of data warehouse, and it is the primary query object in OLAP. However, the standard star/snowflake schema has distinct limitations for modeling the dimension hierarchy in practical applications, and SQL doesn’t provide the direct support for dimension and its hierarchy, which makes the query expression of OLAP verbose and unreadable. In this paper, the SQL(D) data model based on the relational database is presented, which gives the formal definition of hierarchy tree, hierarchy chain and dimension. The unbalance and heterogeneity of dimension hierarchy are permitted in this model. The SQL is also extended efficiently to support the definition of dimension, the comparison of dimension’s levels, the reference of dimension, and the appointment of dimension level to roll up, thus significantly simplifying the query expression of OLAP. Finally, the implementation algorithm of the extended semantic is given.

       

    /

    返回文章
    返回