Skip to content
Hands-on Mentor
ENTR
← Courses
LiveLevel: Beginner· Free

SQL and Database Fundamentals

Talk to the place where data lives: from querying to database design and management.

  • 41 lessons
  • 16 topics
  • 276 coding exercises
  • 410 questions
Start with the first lessonYou can read the lessons without an account.

What you'll learn

  • Pick the rows and columns you want from a table
  • Filter, sort, and summarize data
  • Join several tables and write subqueries and CTEs
  • Design tables with keys and constraints
  • Insert, update, and delete data safely
  • Read a query and predict what it will return

Topics and lessons

1.Getting started
2.Answering questions from one tableUnit taskEarbud: the first eight questions8 steps · you combine what you learned in the unit in one task
3.Summarizing
4.Combining tablesUnit taskEarbud: term report8 steps · you combine what you learned in the unit in one task
5.Nested and step-by-step queriesUnit taskEarbud: one question, three solutions8 steps · you combine what you learned in the unit in one task
6.Cleaning and transforming dataUnit taskCorner Café sales report8 steps · you combine what you learned in the unit in one task
7.Database design
8.Data managementUnit taskCampus event ticketing system8 steps · you combine what you learned in the unit in one task
9.Advanced queries and capstone

Case study

Northbridge University student affairs

You work in a database that looks like a real system: 7 tables, 120 students, 781 course enrollments. First you query the ready-made data, then you design your own tables, change data safely, and in the last two lessons you build a library database from scratch.

Tools: PostgreSQL · runs in your browser, no install

How a lesson works

  1. Explanation

    A short explanation with examples. You change the code on the page and run it right away.

  2. Coding exercises

    Fill in the blanks, write it yourself, fix the bug. You get separate feedback for each requirement.

  3. Lesson quiz

    10 questions. Get at least 7 right to unlock the next lesson; every option has an explanation.

  4. Review

    Your mistakes go into the review queue and come back just as you start to forget them.

Sample question

SQL, grouping

What does this query return?

SELECT department_id, COUNT(*)
FROM student
WHERE gpa > 3
GROUP BY department_id;

Every question in the lessons works like this

  • After you answer, you read why each option is right or wrong.
  • No memorization: you read the code or the data and work out the result yourself.
  • Questions you miss go into your review queue and come back just as you start to forget them.
Prerequisites
None.
Who it's for
Students and new graduates who want to learn how data is stored and queried, whatever your major.

About this course

Do I need any background?

No. Finishing Python Programming Fundamentals first is a good idea, but it is not required.

Where do I start?

You begin with what a database is and the relational model, then learn querying, then table design and data management. All 41 lessons are open.

Is it free?

Yes. All lessons, coding exercises, quizzes, and projects are free. You only need a free account.

Do I need to install anything?

No. The code runs in your browser and never leaves your computer. The first time you run code, the engine takes a few seconds to download.

How does a lesson work?

A short explanation, coding exercises, and a 10-question quiz. Get at least 7 right to unlock the next lesson. Questions you miss go into a review queue and come back when it is time.

Can I study on my phone?

You can read lessons and do quizzes and reviews comfortably on a phone. A computer is easier for writing code.

Study this course

Read the first lesson without an account. Sign up free to solve the exercises and the quiz and to save your progress.

Start with the first lesson