Professional Documents
Culture Documents
NO: 06
ANALYZE THE DIMENSIONAL MODELING
DATE:
AIM:
To explore data and integrate with weka.
ALGORITHM:
STEP 2: Create dimension tables for Date, Product, Customer, and Store using the SQL
'CREATE TABLE' command.
STEP 3: Populate each dimension table with sample data ensuring data integrity and
consistency.
STEP 4: Create a central fact table for Sales that includes foreign keys to each
dimension table.
STEP 5: Insert sample transactional data into your Sales fact table, corresponding to the
foreign keys in the dimension tables.
STEP 6: Query your Star Schema to analyze the data with SQL commands such as
'SELECT', 'GROUP BY', and 'JOIN'.
STEP 7: Visualize or report the analysis results to understand the business process
insights.
STEP 8: Validate the data model and optimize the schema for performance as needed,
such as indexing foreign keys.
STEP 9: Document your findings and the schema design for reference and presentation.
STEP 10: Clean up the environment if necessary by removing or archiving the dataset.
PROGRAM
STAR SCHEMA:
A Star Schema is a type of database schema that is a popular choice for data
warehouse designs because of its simplicity and performance benefits.
Define Business Process: Choose a business process like 'Sales.' The fact table will
record sales transactions.
Identify Fact Table: The fact table will be central in Star Schema, and it will contain
quantitative data about sales, like sale_amount, quantity_sold, etc. Don't forget to include
keys that will connect to the dimension tables.
Identify Dimension Tables: The dimension tables provide context to facts. For a Sales
business process, common dimensions include Date, Product, Customer, and Store.
Design Schema: In MariaDB, create tables using the CREATE TABLE statement with
appropriate data types for columns.
Testing: