freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

第2章數(shù)據(jù)倉庫的數(shù)據(jù)存儲與處理(文件)

2025-01-23 13:12 上一頁面

下一頁面
 

【正文】 city_key city state_or_province country city location維表包含屬性集:{location_key,street,city,province_or_state,country} 例如: Vancouver和 Victoria都是加拿大不列顛哥倫比亞省的城市,此時 location維表中這些城市實(shí)體的該屬性有冗余。 ROLAP將數(shù)據(jù)的多維結(jié)構(gòu)劃分為兩類表:事實(shí)表和維表 。 主流建模技術(shù) 51 多維建模技術(shù)簡介 基于關(guān)系數(shù)據(jù)庫的多維數(shù)據(jù)建模 ?星型模式 ?雪花模式 ?事實(shí)星座模式 52 1)星型模式由一個事實(shí)表和一系列維表組成 time_key day day_of_the_week month quarter year time location_key street city state_or_province country location Sales Fact Table time_key item_key branch_key location_key units_sold dollars_sold avg_sales Measures item_key item_name brand type supplier_type item branch_key branch_name branch_type branch 53 ?雪花模式中維表是規(guī)范的 time_key day day_of_the_week month quarter year time location_key street city_key location Sales Fact Table time_key item_key branch_key location_key units_sold dollars_sold avg_sales Measures item_key item_name brand type supplier_key item branch_key branch_name branch_type branch supplier_key supplier_type supplier city_key city state_or_province country city 54 ?事實(shí)星座模式中多個事實(shí)表共享維表 time_key day day_of_the_week month quarter year time location_key street city province_or_state country location Sales Fact Table time_key item_key branch_key location_key units_sold dollars_sold avg_sales Measures item_key item_name brand type supplier_type item branch_key branch_name branch_type branch Shipping Fact Table time_key item_key shipper_key from_location to_location dollars_cost units_shipped shipper_key shipper_name location_key shipper_type shipper 55 關(guān)于事實(shí)表、維表及鍵的設(shè)計(jì) 1)關(guān)于事實(shí)表 ?事實(shí)表與維表的關(guān)系:主鍵與外鍵 ?一個事實(shí)表對應(yīng)一個主題 ?同一主題不同的粒度對應(yīng)不同的事實(shí)表 ?度量的計(jì)算 2)關(guān)于維表 ?維表的組成:主鍵、分類層次、屬性說明 主鍵:自然鍵,代理鍵 ?維表的作用:說明性信息,為事實(shí)表的檢索條件 ?維表的個數(shù): 415個 56 銷 售 分 析 表P K , F K 2 時 間 編 號P K , F K 1 產(chǎn) 品 編 號P K , F K 3 地 址 編 號 銷 售 數(shù) 量 銷 售 金 額產(chǎn) 品 維 表P K 產(chǎn) 品 編 號 產(chǎn) 品 類 別 產(chǎn) 品 名 稱時 間 維 表P K 時 間 編 號 年 度 月 份 周 日地 區(qū) 維 表P K 地 址 編 號 國 家 省 份 城 市 門 店 一個星型模式的例子 57 作業(yè): P45 ?18 做到書上即可 ?作業(yè): 9, 10, 12 ?補(bǔ)充題:請給出一個實(shí)際問題,設(shè)計(jì)其面向主題的數(shù)據(jù)倉庫星型模式或者雪花模型,或者事實(shí)星座模型。 優(yōu)點(diǎn):信息全面 、 系統(tǒng)靈活 。 ? 關(guān)系數(shù)據(jù)庫 存儲 OLAP數(shù)據(jù)的另一種主要方式 , 與之對應(yīng)的是關(guān)系聯(lián)機(jī)分析處理 ( ROLAP) 。 多維數(shù)據(jù)模型 42 數(shù)據(jù)倉庫的概念模型 ?星型模式 ( Star schema) 事實(shí)表在中心 , 周圍圍繞地連接著維表 ( 每維一個 ) , 事實(shí)表含有大量數(shù)據(jù) , 沒有冗余 。 ? 維屬性: 維的一個取值 。 ( 1) 從時間角度觀察產(chǎn)品的銷售 , 則時間是一個維 ( 時間維 ) 。 3. 數(shù)據(jù)模型為星型模式。 ? 連接索引:登記來自兩個關(guān)系數(shù)據(jù)庫的可連接行 。 ?啟發(fā)式的 (
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1