انواع شما برای پایگاه داده تحلیلی
description
Transcript of انواع شما برای پایگاه داده تحلیلی
انواع شما برای پایگاه داده تحلیلی
مرتضي سرگلزايي جوان[email protected]
www.msjavan.tk
1درس هوش تجاري
http://ceit.aut.ac.ir/islab
الگو های مورد بررسی
Star Schema Snowflake Schema Constellation Schema
+ معرفی برخی از ابزارهای کمکی
2
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
Star Schemaالگوی
3
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
Star Schema (1)مثالی از
4
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
نمونه پرس و جو
5
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
The following query extracts how many TV sets have been sold, for each brand and country, in 1997.
Star Schema (2)مثالی از
6
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
A Example of Cube Browsing
7
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
1 Fact with 4 Dimension Table-- Sales_Fact, Product, Store, Time, Customer
Drilling Down
Drilling Down to products
8
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
Drilling Down
9
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
Drilling Down to the lowest level of Customer Dimension
Rolling up
Rolling up
10
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
Snowflake schemaالگوی
11
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
Snowflake schemaمثالی از
12
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
نمونه پرس و جو
13
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
Notice that the snowflake schema query requires many more joins than the star schema version in order to fulfill even a simple query. The benefit of using the snowflake schema in this example is that the storage requirements are lower since the snowflake schema eliminates many duplicate values from the dimensions themselves.
Reverse Snowflake Joins ابزار
Using the Open Source tool Reverse Snowflake Joins it is possible to parse the SQL statement above and generate a diagram showing not only the joins, but also the SUM, WHERE and GROUP BY clauses.
14
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
constellationنمونه ای از الگوی
15
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
نمونه ای دیگر از الگوی constellation
16
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab
مراجع
http://en.wikipedia.org/wiki/Star_schema http://en.wikipedia.org/wiki/Snowflake_schema http://revj.sourceforge.net/ http://datawarehouse4u.info/Data-warehouse-schema-
architecture-fact-constellation-schema.html http://etl-tools.info/en/bi/datawarehouse_constellation-
schema.htm
17
درس هوش تجاري – مرتضي سرگلزايي جوان
http://ceit.aut.ac.ir/islab