What problem does it solve? Designing analytical databases without a clear dimensional structure leads to slow queries, redundant data, and unmaintainable schemas. This Skill provides concrete patterns and SQL templates for building star schemas, fact tables, and dimension tables correctly from the start. ## Core Features & Use Cases - Star Schema Design: Templates for fact tables with surrogate keys, foreign keys, measures, and flags, plus dimension tables with SCD Type 2 support. - Schema Trade-off Guidance: Side-by-side comparison of star (denormalized) versus snowflake (normalized) schemas with query examples. - Design Patterns: Covers conformed dimensions, junk dimensions, grain definition, aggregation tables, and slowly changing dimensions (Type 1 and Type 2). - Use Case: When building a sales analytics warehouse, use this Skill to define the fact_sales grain, create dim_customer with history tracking, and write optimized star queries grouped by segment and month. ## Quick Start Ask the AI to design a star schema for a sales fact table with customer, product, and date dimensions including SCD Type 2 history tracking.