createStarSchema.PractII.VarmaA.RPurpose: Creates the empty database structure (tables) for our analytics warehouse.
Analogy: Building the skeleton of a house before adding furniture. We're creating the rooms (tables) before filling them with data.
Step 1: Connect to MySQL
Step 2: Clean Up Old Tables
Step 3: Create Dimension Tables
dim_date - Calendar information (year, month, week, day)dim_country - Country names (Deutschland, Österreich, etc.)dim_sport - Sport categories (Ice Hockey, Ski Jumping, Inline Hockey)Step 4: Create Fact Table
fact_streaming_summary - Main analytics tableStep 5: Create Staging Table