Please enable JavaScript to use CodeHS

Introduction to SQL

Learn the basics of SQL. How to structure information, write queries, and analyze data.

Course Duration

6-8 Hours

Course Level




About this Course

Understanding your data is the key to understanding your users. If you learn SQL, you will be able to find the answers to the most important questions at your business. This course teaches you the fundamentals of SQL so you understand how data is stored and how to search for, or query, the information. You don't need any experience coding to learn, but even if you have tried out SQL before, this course will give you the confidence you need to use SQL at your job.

Meet Your Instructor

Zach Galant

As co-founder of CodeHS and previous computer science TA at Stanford, Zach has helped to teach thousands of students how to program.

"I was told to learn SQL for my job, and I managed to figure out how to run basic queries, but it wasn't until I took this course that I really understood how SQL works." Vivian, Process Engineer

Who It's For

  • Marketers
  • Product Managers
  • Non-technical Founders
  • Anyone who deals with data

What You'll Get

  • Videos explaining concepts
  • Practice queries in the browser
  • Instant feedback from autograders
  • Fun and friendly instruction

What You'll Learn

  • Take control of your data
  • Understand your users
  • Speak the language of SQL
  • Valuable skills for your career

"I could not have asked for a better introduction to SQL than the course I took with CodeHS. Unlike other training materials that exist, The CodeHS offering is simple, interactive, and fun. Most importantly, CodeHS gave me the confidence that even with my non-technical background, I could quickly become proficient in the basics of one of the most widely applicable programming languages." Eric. Manager, Customer Support

Run SQL Queries in the Browser

Write and run SQL queries right from your browser. See all of the videos, exercises, quizzes, and programs without downloading anything.

Instant Feedback from Autograders

See if your queries are working immediately with our autograders that compare your results to the correct solution.

Fun and Approachable

Explore SQL by exploring data from Harry Potter including characters, houses, and classes.

"It made complex lessons easy to understand and I really enjoyed the exercises. Making progress was addicting -- I didn't want it to end! I would recommend to anyone who wants to learn SQL." Meredith. Account Manager @ Twitter