Give 2 examples for Star schema, Snowflake schema and Fact Constellation Schema.
1. Star Schema:
The Star Schema is a widely adopted schema design in data warehousing, characterized by a centralized fact table connected to multiple dimension tables. The fact table contains the quantitative data (facts), and the dimension tables store descriptive information related to the facts. Here are two examples of the Star Schema:
Example 1: Sales Data Warehouse
*Fact Table:*
- `Sales_Fact`
- sales_id (Primary Key)
- product_id (Foreign Key)
- time_id (Foreign Key)
- quantity_sold
- revenue
*Dimension Tables:*
- `Product_Dim`
- product_id (Primary Key)
- product_name
- category_id (Foreign Key)
- brand_id (Foreign Key)
- `Time_Dim`
- time_id (Primary Key)
- date
- day_of_week
- month
- year
In this example, the `Sales_Fact` table contains quantitative data such as quantity_sold and revenue, while the `Product_Dim` and `Time_Dim` tables provide descriptive information about products and time, respectively.
Example 2: Human Resources Data Warehouse
*Fact Table:*
- `Employee_Performance_Fact`
- employee_id (Primary Key)
- project_id (Foreign Key)
- performance_rating
- hours_worked
*Dimension Tables:*
_________ _______ __________ _______ _________ __________ _____ __________ ______.
_____ ___ ________ __________ _____ ______ ____ ____ ___ _________ _____.
_____ _______ __________ ________ _________ _____ ______.
___ _________ _________ _____ ________.
__________ ____ _________ _____ ________.
__________ ________ ___ __________ ____ __________ ______ ________ ______.
______ ____ _________ __________ ____ ______ __________ __________ _____ ________ _______.
_______ ____ _________ _____ ____.
_________ _______ __________ ______ __________ ___ ___ ____.
________ _____ _____ ______ ______ _________ ________.
__________ _____ ___ ___ _________.
__________ ________ ______ _______ _________.
________ _____ _______ __________ _______ __________.
_______ ___ _____ _______ ________ ______.
________ ___ _____ ________ ____ _________ ____ _____ ______ _________ ________ _____.
____ ___ ___ ____ ___ _________.
___ _________ _________ ________ _____ ______ __________ ________ _____ ________ ______.
_________ ____ ________ __________ __________ _________ _________ _________ ________ _______.
________ __________ ________ _________ _______ _____ ____.
_________ ______ _________ ___ ______ ___ _________ _____ ________ ________ _____ ____.
____ ___ _______ ___ _________ _________ _______ _____ __________ ________ _____ ____.
____ __________ __________ __________ __________ ______ ___ _______ ________ _______.
_______ _____ ______ __________ __________.
________ _________ ________ __________ ____ __________ __________ __________ __________ _______ _____ _______.
____ _________ _____ _____ ____ ____ _________ ___ ____.
___ _____ ______ ________ _______.
__________ ______ __________ _________ ________ ______ _____ ___ _______ ___.
_________ ________ ___ ______ _________ ____ _____ _______ ____ _____.
_________ ____ ___ ____ ___.
____ ________ _____ _______ ______ ____ ________.
_______ ___ ________ _____ _____ ________ _____ _____ ____.
______ _______ ________ _______ ___ _____ ___.
___ _________ _____ _____ ___ __________.
_________ _________ _____ ________ ____.
____ _____ _______ _____ __________ _______ ___ _______ _________ _____ ___.
_____ _________ _________ ________ _________.
__________ ____ ____ ________ _______ ___.
__________ _____ __________ _________ _______ _________ __________.
____ ___ __________ __________ ___ __________.
____ ______ ____ __________ __________ ________.
________ ______ _________ _________ _____.
______ _________ _____ ______ __________ _______.
_______ ______ _______ ______ ________ ____ __________ _____ ________ ____ _________.
__________ ________ _________ __________ ______ _______ ________ _____ _____ ___ ______ _________.
__________ __________ ____ ___ ____ _________ _________ ___.
____ _______ _____ ____ __________ ____ ________ ___ ___ _______ ____ ______.
____ ____ _______ ___ _____.
__________ _________ ________ ________ _________.
____ _______ _____ ________ _________ ______ ____.
__________ __________ _________ ______ ________ ________ __________ _____ ___ _______ ______.
_____ __________ _________ _________ _______ __________ _______ ______ ________ ___.
______ ___ ____ ___ _______ ____ _________.
_____ ____ _________ __________ ___ ______ ______ ___ ______ _______ _________ ______.
______ _____ __________ ________ _______ _____ ______ _____.
_____ ______ __________ __________ _________ __________ ___ _______ ______.
____ _____ ___ ___ ____ _____ ___ _______ ____.
_____ ___ _________ _________ _____ __________ ______ ________ _________.
__________ ___ _______ __________ ___ ____ ________ ____.
_____ ________ ________ ___ _________ ________ ____ ___ _____ __________ ________.
_____ ___ _____ ________ ____ ________ ________ ___ ___.
_______ ___ __________ ___ ________ ___ ______ _________ _________ ___.
________ __________ __________ ______ ________ ____ _________ ________.
___ ___ _______ ______ ______ __________ _________ _______.
_____ _____ ____ ___ _______ ____ _____ _____ ______.
________ ______ _________ ______ _________.
________ ________ ______ ______ ___ ______ _________ __________ ________ __________ ___.
_________ ___ ___ _________ _________.
_________ _____ _____ ________ ___ _________ ___ ______.
________ ________ _______ _________ ____ ___ __________ ___ ____ ________ _____.
_______ ______ _______ _______ ___ ___ _____ ___ ______.
_______ _________ _______ __________ _____ _________.
____ _________ _________ _____ ___ _________ _________ ___ _________ ____ ______.
__________ ______ _________ _________ ________ ____ _______ ________ __________.
_________ ___ ________ _______ _________ _______ ___ ________ ____ _______.
___ ______ _______ ___ _____ _____ _________ ___ __________ __________ ________.
__________ _________ _________ _________ ________ _________ _______.
____ __________ ______ ________ _____ ____ ____ ___ ______ _______ ___.
__________ ___ _______ __________ _____.
______ _______ _________ ____ ____ ______ ____.
_______ _______ __________ ______ ________ ___ _________ ____ _____.
___ ____ _______ ____ _______.
______ ______ ________ __________ ________ ________ ___ _______ ______.
______ _______ __________ ___ ____ ___.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required