Guide

How long does it take to learn SQL on YouTube? 10 free courses, measured

Updated 2026-11-11 · 7 min read

Watching a free beginner SQL course on YouTube takes 2 to 11 hours, and most take about 4. We measured the ten courses on our SQL list on 11 November 2026, counting every video to the last: Socratica's is 1 hour 49 minutes, Rishabh Mishra's Hindi course 4 hours 11, Data with Baraa's 4 hours 13, the SQL part of Alex The Analyst's bootcamp 4 hours 13, Luke Barousse's 10 hours 45 and Harvard's CS50 SQL 11 hours 8.

At 1.5× speed and half an hour a day, a 4-hour course takes 6 days. SQL is a short language to learn and a long one to get quick at, so the longer playlists on the list are practice: techTFQ's 30-day query challenge is 8 hours, Ankit Bansal's interview problems 28, kudvenkat's SQL Server series 27 and Carnegie Mellon's database course 34.

Every SQL course, measured

Ranked by total. "1.5×" is the total watched at one and a half times speed, and "Avg" the average video.

Course Videos Total 1.5× Avg
CMU Databases 25 34 h 22 h 81 m
Ankit Bansal 96 28 h 18 h 17 m
kudvenkat 150 27 h 18 h 11 m
Alex: bootcamp 84 24 h 16 h 17 m
CS50 SQL 8 11 h 7 h 84 m
Luke Barousse 4 11 h 7 h 161 m
techTFQ 30 8 h 5 h 16 m
Data with Baraa 37 4 h 3 h 7 m
Rishabh Mishra 21 4 h 3 h 12 m
Socratica 13 2 h 1 h 8 m

Totals are rounded to the hour. Rishabh Mishra teaches in Hindi, the other nine in English. None of the ten playlists has a private or deleted video. Each course name opens its live page, where the total is current and you can tick off what you have watched. The same courses are on our list of free SQL courses, with notes on who each suits.

Alex The Analyst's 24 hours are the whole data analyst path. Its SQL is videos 3 to 20, a MySQL series from installing it to stored procedures and two projects: 4 hours 13 minutes on their own. The other 64 videos are Excel, Tableau, Power BI and Python.

Learn it, practise it, or go underneath

The ten are four kinds of playlist, and the kind decides your week more than the total does.

Learn the language, 2 to 11 hours. Socratica (1 hour 49), Rishabh Mishra (4 hours 11), Data with Baraa (4 hours 13) and Alex The Analyst's MySQL videos (4 hours 13) cover the same core: SELECT and WHERE, grouping and joins. Socratica's thirteen lessons stop there, with views and indexes; the other three go on to subqueries, and Alex's and Rishabh's to window functions, CTEs and a project. CS50 SQL is longer, 11 hours 8, because it is seven university lectures of 79 to 129 minutes that also teach how to design and scale a database. Luke Barousse's 10 hours 45 are two long videos, a 4-hour beginner course and a 6½-hour intermediate course with a project, and two short corrections.

Practise, 8 to 28 hours. techTFQ's challenge is 30 problems, one a day, 16 minutes on average: 8 hours over a month. Ankit Bansal's is 96 interview problems, 13 minutes in the middle, and growing since 2022; one of them is a 3-hour last-minute revision on its own, so the problems themselves come to 24½ hours. Both assume you have done a beginner course.

A reference, 27 hours. kudvenkat's SQL Server series is 150 videos of 11 minutes, from tables and joins to transactions, then one feature per video: grouping sets, NTILE, UNPIVOT, query plan caching. Few people watch it end to end. Most use it to look up the one thing they need at work.

How databases work, 34 hours. Carnegie Mellon's 15-445 is 25 lectures of about 80 minutes on storage, indexes, joins, query optimisers, transactions and recovery. Only one lecture is about writing SQL. It is the course for when queries feel easy and you want to know why some are slow.

Days to finish at half an hour or an hour a day

How many days each course takes at 1.5×, watching every day.

Course Hours 30 min a day 1 h a day
Socratica 2 3 days 2 days
Rishabh Mishra 4 6 days 3 days
Data with Baraa 4 6 days 3 days
Alex: SQL videos 4 6 days 3 days
techTFQ 8 11 days 6 days
Luke Barousse 11 15 days 8 days
CS50 SQL 11 15 days 8 days
kudvenkat 27 37 days 19 days
Ankit Bansal 28 37 days 19 days
CMU Databases 34 45 days 23 days

These are days of video. SQL sticks once you write queries against real tables, so pause and type each one, and treat these days as the floor. On problem sets like techTFQ's and Ankit Bansal's, try each problem before the answer plays: it doubles the time and is the part that helps in an interview (what 1.5× and 2× cost →).

Put together, the usual route to a data analyst's SQL is a beginner course and then a practice set. Socratica then techTFQ is 10 hours, 7 at 1.5×, about two weeks at half an hour a day. Alex The Analyst's MySQL videos then Ankit Bansal's problems is 32 hours, 21 at 1.5×.

A playlist that counts its course twice

Data with Baraa's newer SQL Ultimate Course is left out of the ranking, because its total misleads. Video 1 is the whole course as one 29-hour 48-minute upload, and videos 2 to 56 are the same course again, in chapters. The playlist adds up to 60 hours 24 minutes; from video 2 on it is 30 hours 35, which is the course. At 1.5× and half an hour a day that is 41 days. Watch one version, not both.

Check the total covers every video

Some playlist length tools add up only the first 100 videos and stop without saying so. kudvenkat's playlist has 150: the first 100 come to 20 hours 16 minutes, and the 50 a capped tool misses are another 6 hours 47, a quarter of the series. If a total looks short for a playlist with more than 100 videos, here is how to check it.

Plan the one you choose

Paste the course's link on the home page, or click its name in the tables above, and set your daily minutes in the planner: it gives you a finish date and the videos for each day, and you can put the sessions in your calendar. Tick each video as you finish it and the time left updates; the course stays in your list on the home page, so you can pick it up where you stopped. SQL usually comes with Excel and Python on the way to an analyst job: the Excel guide and the Python guide measure those courses the same way, and how long a free YouTube course is compares the subjects.

Frequently asked

How long does it take to learn SQL?

The free beginner courses on YouTube take 2 to 11 hours of video, most about 4, measured on 11 November 2026. At 1.5× and half an hour a day that is about a week. Add a practice set like techTFQ's 30-day challenge, 8 hours, to get quick at it.

How long is CS50's SQL course?

CS50's Introduction to Databases with SQL is 11 hours 8 minutes over eight videos: a short introduction and seven lectures of 79 to 129 minutes. At 1.5× that is 7½ hours. The problem sets are free on the CS50 site and take longer than the lectures.

How long is Alex The Analyst's SQL course?

His MySQL series is videos 3 to 20 of his Data Analyst Bootcamp playlist, 4 hours 13 minutes, including two full projects. The whole bootcamp is 23 hours 37 minutes over 84 videos, with Excel, Tableau, Power BI and Python after the SQL.

Can I learn SQL in a week?

Yes, the language: Socratica's course is 2 days at an hour a day, and Data with Baraa's or Rishabh Mishra's 3 days at 1.5×. Getting fast enough for an interview takes longer, because that comes from solving problems, not watching them.

Which free SQL course is the shortest?

Socratica's Introduction to SQL, 1 hour 49 minutes over 13 lessons of about 8 minutes, covering queries, changes to data, joins, views and indexes in PostgreSQL.

Why might a total differ from the playlist today?

These totals were measured on 11 November 2026. Creators add videos, Ankit Bansal's playlist still grows, and videos go private. Each course's page here, and the SQL list, shows the total as it is now.