Data modeling is the work of deciding how information is structured: which entities exist, what attributes they have, how they relate and which keys tie them together. It usually moves from a conceptual model of the business, to a logical model of entities and relationships, to a physical model of real tables and data types. Transactional systems lean on normalization to avoid duplicate data, while analytics warehouses often use dimensional models built from fact and dimension tables. Learnr builds a data modeling course around the systems you work with, in short lessons with diagrams and design exercises.
How to learn Data Modeling, step by step
- Model a business you understand. Pick something familiar, like a library or a coffee shop, and list its nouns: customers, orders, products, staff. Those become candidate entities. Write down the questions people need answered before you draw a single table.
- Draw an ER diagram with cardinality. Connect entities and mark each relationship as one-to-one, one-to-many or many-to-many. Resolve every many-to-many relationship with a junction table, such as order lines sitting between orders and products.
- Normalize a flat spreadsheet. Take a wide sheet with repeated customer and product details on every row and break it apart step by step into first, second and third normal form. Note which update problems disappear at each stage.
- Learn dimensional modeling for analytics. Study the Kimball approach: a fact table of measurable events at a declared grain, surrounded by dimension tables like date, customer and product. Write one sentence stating the grain before choosing any columns.
- Compare star and snowflake schemas. Build the same model twice, once with flat denormalized dimensions and once with dimensions split into sub-tables. Query both and notice the extra joins, then decide which trade-off suits your warehouse and BI tool.
- Practice slowly changing dimensions. Handle a customer who moves cities with type 1, overwriting the value, and type 2, adding a new row with effective dates. Short Learnr review sessions help keep the SCD types and normal forms straight.
What you'll learn
- Draw entity relationship diagrams with correct cardinality
- Choose primary keys, foreign keys and surrogate keys for each table
- Normalize a messy table to third normal form and explain each step
- Design a star schema with a clearly stated grain for an analytics question
- Handle history with type 1 and type 2 slowly changing dimensions
How long does it take to learn Data Modeling?
With basic SQL, the fundamentals of ER modeling and normalization take about 3 to 5 weeks at 3 to 5 hours a week. Dimensional modeling for a warehouse adds another month or two, and judgment on real messy systems keeps growing with every project you model.
What you need before you start
Basic SQL, especially SELECT, joins and GROUP BY, and a general sense of how relational databases store data in tables. No specific database product is required.
Common mistakes to avoid
- Building a fact table without declaring its grain, which leads to mixed levels of detail and totals that double count.
- Normalizing an analytics model so heavily that every report needs many joins, when a denormalized star schema would be simpler and faster to query.
- Using natural keys like email addresses as primary keys, then breaking relationships when those values change.
How Learnr builds your course
Type your topic
Tell Learnr you want to learn Data Modeling, or get as specific as you like.
Get a personalized course
Learnr instantly builds a full Data Modeling course tailored to your goal and skill level.
Learn and level up
Move through bite-sized lessons and interactive practice, earning XP and keeping your streak.
Data Modeling questions, answered
What is the difference between a star schema and a snowflake schema?
In a star schema each dimension is one flat table joined directly to the fact table. A snowflake schema normalizes dimensions into related sub-tables, saving some storage and duplication at the cost of more joins in queries.
Is data modeling still needed with modern cloud warehouses?
Yes. Cheap storage and fast compute do not fix unclear grain, duplicate definitions or broken relationships. A good model is what makes metrics consistent and queries understandable for everyone who uses the data.
Which tools do data modelers use?
Many start with a whiteboard or a diagramming tool for ER diagrams, then write the model in SQL DDL or a transformation tool such as dbt. The concepts matter more than any specific modeling software.
Explore more courses
More data and ai courses
- Learn Snowflake
- Learn Apache Airflow
- Learn ETL
- Learn SPSS
- Learn Stata
- Learn SAS
- Learn Jupyter Notebooks
- Learn Kaggle
Ready to learn Data Modeling?
Start your free, personalized Data Modeling course in seconds. It will be typed in and ready when you get there.
Start learning Data ModelingFree to start. No credit card.