All Courses
Harvard CS50
sql
Beginner
Certificate

CS50's Introduction to Databases with SQL

30 hours
4.8(4,100 reviews)
Free

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, and we earn nothing from it: we are not in edX's affiliate program. 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).

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

Level

beginner

Duration

30h

Certificate

Yes, included

Cost

Free

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?

No. We are not in edX's affiliate program, so that link pays us nothing. The free Harvard version has the same lessons.

More sql Courses

Khan Academy's interactive SQL course. Learn to create tables, insert data, query with SELECT, filter with WHERE, join tables, and aggregate with GROUP BY.

8h
4.6
Details

Learn SQL, PostgreSQL, and relational database concepts by completing projects in a Linux environment. Covers table design, joins, constraints, and database management. Free verified certificate.

60h
4.7
Details

Google's data analytics certificate. Covers data cleaning, analysis, visualisation with Tableau, SQL queries, and R programming. Free to audit; certificate costs money.

240h
4.8
Details