Harvard CS50
SQL
Beginner
Certificate

Free course on Harvard CS50

CS50's Introduction to Databases with SQL

30 hoursFree

Reviewed by the FreeCodingCourses.com editorsLast reviewed: How we review

At a glance

Level
Beginner
Hours
30
Cost
Free

Certificate available on completion.

Open Course Premium version

CS50's Introduction to Databases with SQL is free on two paths. Harvard hosts the full course at cs50.harvard.edu/sql, with every lecture and problem set open and no login required. edX carries the same course and adds an optional verified certificate. Our 'Go deeper' button links to the edX listing. Some links are affiliate links and may earn us a commission. It never affects our picks or ratings. This is a dedicated SQL course, so it's a better fit than CS50x if databases are specifically what you're after. Take it free on Harvard's site to learn the material, or use edX if you want the certificate as proof.

The course teaches SQLite, MySQL, and PostgreSQL across about 30 hours of material (source: cs50.harvard.edu/sql).

Editor’s take

Best for
Analysts, back-end beginners and anyone tired of juggling exported spreadsheets, who want to design databases properly and not only write SELECT queries.
What you will be able to build
Problem sets on real-world datasets, including Moneyball, Union Square Donuts, Bed and Breakfast and From the Deep, across querying, relating, designing, writing, viewing, optimising and scaling. The final project is a database you design, alone or with one or two classmates.
The hardest part
Problem Set 2, the Designing week (ATL, Happy to Connect, Union Square Donuts), where you model entities with types and constraints instead of querying a schema someone else wrote. The last week moves beyond SQLite to PostgreSQL and MySQL and asks for Python or Java.
What to take next
To put a database behind a working website, CS50 Web uses SQL, models and migrations inside Django. CS50's Web Programming with Python and JavaScript →

Written from the course’s own syllabus and our review criteria.

About This Course

Harvard's dedicated SQL course. Learn to design databases, write complex queries, use indexes, and work with SQLite, MySQL, and PostgreSQL.

Course Details

Platform
Harvard CS50
Language
SQL
Duration
30h
Certificate
Yes, included
Cost
Free
All Courses

Frequently Asked Questions

Is CS50 SQL free?

Yes. It's free on cs50.harvard.edu/sql and free to audit on edX. Only the edX certificate costs money.

Which databases does it teach?

SQLite, MySQL, and PostgreSQL, plus schema design, indexing, and writing queries from simple selects up to joins and subqueries.

Do I need to know SQL first?

No. It starts from the basics of tables and queries and builds up to database design and optimization.

Harvard's site or edX?

Same course on both. Harvard's site is fully open; edX adds a certificate and progress tracking.

Do you earn anything if I use the 'Go deeper' link?

It can. Some links are affiliate links and may earn us a commission. It never affects our picks or ratings. The free Harvard version has the same lessons.

More SQL Courses