1. Home
  2. Explore
  3. Computer Science
  4. SQL Full Course Tutorial

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

SQL Full Course Tutorial

Speaker 1Speaker 2

SQL Full Course Tutorial

4:09
0:00-4:09
  1. Corey

    Alright, Maria, let's kick this off. You know, SQL is hands-down the most requested skill in data engineering job postings. Two out of every three listings mention it, and it only becomes more important at senior levels. So if you're starting out, this is where you focus.

  2. Maria

    Absolutely. And the course we're looking at breaks it all down into bite-sized topics. No prior coding or terminal experience needed. The first half is all about fundamentals — getting your environment set up, then core query building blocks like filtering, grouping, aggregation, and sorting. Plus, we'll use real tools like VS Code, the terminal, and Git.

  3. Corey

    Right. And the second half shifts into production-style SQL — creating and altering tables, inserting and updating data, and designing star schemas with fact and dimension tables. You'll even build two complete portfolio projects. One exploratory analysis, and one full end-to-end pipeline. That's huge for showing job-ready skills.

  4. Maria

    So before we dive into the syntax, let's make sure we understand what SQL even does. You write a query on your computer, send it to a database, and the database performs a CRUD operation — Create, Read, Update, Delete. The read part uses SELECT, which is Data Query Language. The other three fall under Data Manipulation Language (insert, update, delete) and Data Definition Language (create, alter, drop).

  5. Corey

    Exactly. And that database can live in two places: locally on your machine or in the cloud. Local is great for iterating without breaking production, but cloud is where the real data lives so your whole team can access it. For this course, we'll use both — local for development and cloud for the final project, using DuckDB and MotherDuck.

  6. Maria

    DuckDB is a blazingly fast, free, open-source relational database focused on analytics. MotherDuck is the cloud platform that hosts DuckDB databases. And the best part? There's a free tier — no credit card required. We'll start by signing up and attaching a pre-loaded job postings dataset.

  7. Corey

    Once you're in, you'll see the MotherDuck interface: a left sidebar with databases, a notebook area where you write SQL, and an inspector on the right. You can explore the data right away — even without knowing SQL well — by clicking on a table and selecting 'Query in current notebook'. That auto-fills a SELECT * query for you.

  8. Maria

    Let's talk about the basic keywords. SELECT and FROM are the foundation. SELECT identifies which columns you want, FROM tells the database which table to pull from. Use an asterisk to grab all columns. For example, `SELECT * FROM job_postings_fact` returns everything — but be careful: it's resource-intensive, so always add a LIMIT when exploring.

  9. Corey

    Right. And if you only need specific columns, list them after SELECT separated by commas: `SELECT job_id, job_location FROM job_postings_fact`. You can also use DISTINCT to get unique values from a column — super handy for seeing what categories exist, like different job titles.

  10. Maria

    Filtering comes next with WHERE. You write `WHERE job_title_short = 'Data Engineer'`. Notice the single quotes around text values. For numbers, no quotes needed: `WHERE salary_year_avg = 100000`. And don't forget NULL handling — use `IS NULL` or `IS NOT NULL` because `= NULL` won't work.

  11. Corey

    Another key keyword is ORDER BY, which sorts your results. By default it's ascending; add DESC for descending. And the order of keywords in your query matters: SELECT, then FROM, then WHERE, then GROUP BY, HAVING, ORDER BY, and finally LIMIT. If you mix them up, you'll get a parser error.

  12. Maria

    Let's not forget comments. Use double dashes for single-line comments, or `/* */` for multi-line blocks. Great for documenting your queries or temporarily disabling parts of your code while troubleshooting.

  13. Corey

    And there's a concept called DuckDB-friendly syntax. DuckDB allows you to put FROM before SELECT in some cases — but that's not standard. Stick to the conventional order so your skills transfer to any SQL database.

  14. Maria

    We've covered a lot already, but this is just the beginning. Next, we'll dive into comparison and logical operators — things like `>`, `<`, `AND`, `OR`, `NOT`, and the `BETWEEN` and `IN` operators to make filtering more powerful.

  15. Corey

    Exactly. And after that, wildcards with the LIKE operator, aliases to rename columns and tables, arithmetic operations, and aggregate functions like COUNT, SUM, AVG, MIN, MAX, and MEDIAN. Each lesson builds on the last, so you'll be writing real analytical queries in no time.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent