Find a course
Age level: University students (18–25)IntermediateData & AI

Database Design Basics

ER diagrams, keys, normalization and SQL schemas that stay correct

⏱ 2 h 45 min5 modules · 12 lessons78 practice questionsFinal exam: 20 questions
Included with this course

Your certificate for this course

Finish the 12 lessons (about 2 h 45 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.

  • Your name and this course titlePrinted in classic diploma typography
  • Grade: Pass, Merit or DistinctionOn the gold seal, with your final score
  • Unique ID and QR codeAnyone can verify it in seconds
  • Score report PDFModule-by-module results and exam score
  1. Lessons12 lessons
  2. Final exam20 questions · 70% to pass
  3. CertificatePDF + score report

What you will learn

  • Explain the relational model and choose sound primary keys, data types and NOT NULL, UNIQUE and CHECK constraints
  • Identify entities, attributes and relationships from requirements and draw ER diagrams in crow's foot notation
  • Determine cardinality and participation, and resolve many-to-many relationships with junction tables
  • Map an ER diagram to tables with correctly placed foreign keys and referential actions
  • Recognize update, insert and delete anomalies and describe them with functional dependencies
  • Normalize tables to 1NF, 2NF, 3NF and BCNF, and judge when denormalization is justified
  • Write CREATE TABLE statements and query normalized tables with joins and GROUP BY
  • Choose effective indexes and use transactions and constraints to keep data correct under concurrency

About this course

Almost every app, website and business system sits on a database, and the quality of its design decides whether the data stays trustworthy for years or slowly fills with contradictions. This free course teaches you how to design relational databases the way professionals do: from a plain-language description of a business to a clean, normalized schema written in SQL.

You'll start with the relational model: tables, rows and columns, primary keys, natural and surrogate keys, data types, NULL and the constraints that protect data. Then you'll learn conceptual modeling with entity-relationship diagrams: finding entities and attributes in interview notes, deciding cardinality and participation, reading crow's foot notation, resolving many-to-many relationships with junction tables, and mapping everything to tables with foreign keys.

The normalization module shows why badly designed tables cause update, insert and delete anomalies, and how functional dependencies guide you through first, second, third and Boyce-Codd normal form. You'll also learn when deliberate denormalization makes sense. Finally, you'll write the design in SQL with CREATE TABLE and constraints, query it back together with joins and GROUP BY, speed it up with the right B-tree indexes, and keep it correct under concurrent use with transactions and ACID.

The course is for students, junior developers, analysts and anyone who works with data and wants to design databases rather than just use them. Basic familiarity with spreadsheets is enough; SQL is introduced as needed. One running bookstore example ties the lessons together, with scenarios, calculators and quick checks throughout, and passing the final exam earns you a free certificate of completion.

Syllabus

  1. Relational Foundations

    Why databases beat spreadsheets for shared data, how the relational model organizes it in tables, and how keys, data types and constraints protect it.

    1. Why Database Design Matters13 min
    2. Tables, Keys and Constraints14 min
  2. Modeling with ER Diagrams

    Turn requirements into entities, attributes and relationships, read and draw crow's foot diagrams, and map a model to tables with foreign keys.

    1. Entities, Attributes and Relationships14 min
    2. Cardinality and ER Diagrams14 min
    3. From ER Diagram to Tables15 min
  3. Normalization

    Find redundancy with functional dependencies and remove it step by step through first, second, third and Boyce-Codd normal form, then learn when to denormalize.

    1. Anomalies and Functional Dependencies14 min
    2. First, Second and Third Normal Form16 min
    3. BCNF and Denormalization14 min
  4. From Design to SQL

    Write the schema in SQL with keys and constraints, then see how a normalized design is queried back together with joins and aggregates.

    1. Creating Tables in SQL15 min
    2. Joins and Queries15 min
  5. Performance and Integrity

    Speed up queries with the right indexes, keep data correct under concurrent use with transactions, and review a design before it goes live.

    1. Indexes and Performance15 min
    2. Transactions and Design Review15 min
  6. Final exam and certificate

    20 questions drawn from a pool of 33. Score 70% or more to pass; retakes get a fresh set of questions.

Try a sample question

In the relational model, how does an order row connect to the customer who placed it?

  1. The order row contains a hidden memory pointer to the customer row
  2. Orders and customers are kept in the same table
  3. The order row stores the customer's key value, which matches a row in the customer table
  4. The customer row stores a list of all its order numbers in one cell
Show the answer

Answer: C. The order row stores the customer's key value, which matches a row in the customer table

Relational tables link through matching key values: the order holds a foreign key equal to the customer's primary key, and a join uses it. Storing a list of order numbers in one cell breaks the single-value rule, and keeping both in one table brings back the redundancy problems.

Database management system (DBMS)
Software that stores data, enforces its rules, handles concurrent access and answers queries, such as PostgreSQL or MySQL.
Relational model
A way of organizing data in tables (relations) of rows and columns, linked by matching key values.
Table
A set of rows that all describe the same kind of thing, with the same named, typed columns.
Primary key
A column or set of columns whose value uniquely identifies each row; it must be unique and not null.
Candidate key
A minimal set of columns that could serve as the primary key because it uniquely determines every row.
Surrogate key
An artificial identifier generated by the database, such as an auto-incrementing integer, with no meaning outside the system.

Frequently asked questions

What is database normalization in simple terms?

Normalization is the process of organizing tables so that each fact is stored in exactly one place. It splits tables that describe several things at once, using rules called normal forms (1NF, 2NF, 3NF and BCNF). The result avoids contradictions when data is updated, lets you add facts independently and makes deletions safe.

What is the difference between a primary key and a foreign key?

A primary key uniquely identifies each row in its own table, such as customer_id in the customer table. A foreign key is a column in another table that refers to that primary key, such as customer_id in the orders table. Foreign keys create relationships and let the database ensure every reference points to a real row.

Do I need to normalize to BCNF or higher?

Most business databases aim for third normal form, which removes nearly all practical redundancy. BCNF fixes rarer cases with overlapping candidate keys and is worth applying when it does not make important rules impossible to enforce. Fourth and fifth normal forms address unusual situations that good ER modeling usually avoids.

Should I use a natural key or a surrogate key?

Many designers use surrogate keys, such as auto-generated integers, for main entities because they never change and are compact. Natural keys like ISBNs or country codes still belong in the table with a UNIQUE constraint. Small, stable code tables are often keyed naturally for readability.

Does this course apply to MySQL, PostgreSQL and SQL Server?

Yes. Modeling and normalization are the same for every relational database, and the SQL in the course uses standard syntax. Small details, such as how auto-generated ids are declared, vary by system, and the lessons point these out.

Is database design still relevant with NoSQL databases?

Yes. Relational databases remain the default for transactional systems such as orders, payments and bookings. Even when you use a document or key-value store, the skills of identifying entities, relationships and access patterns carry over, and knowing normalization helps you make deliberate trade-offs.

Is the certificate an accredited qualification?

No. It is a certificate of completion showing you finished the lessons and passed the final exam. It is useful for documenting your learning, but it is not an academic or vendor certification.

Sources and further reading

Related courses

Adults & professionalsBeginner

SQL for Beginners

Query, filter, summarize and join data with confidence

Data & AI
2 h 10 min11 lessonsCertificate
University studentsIntermediate

Machine Learning Fundamentals

Regression, classification, evaluation and clustering, explained with live models and code

Data & AI
2 h 50 min11 lessonsCertificate
University studentsIntermediate

Python for Data Science

NumPy, pandas, data cleaning, charts and a first model with scikit-learn

Data & AI
2 h 50 min12 lessonsCertificate
Adults & professionalsIntermediate

Statistics for Data Analysis

The statistics analysts use every day, from skewed averages to A/B tests

Data & AI
2 h 20 min11 lessonsCertificate
University studentsIntermediate

Neural Networks Explained

From a single neuron to transformers, with the math made visual

Data & AI
2 h 45 min11 lessonsCertificate