SkyAICampus
HomePracticeLearnCode LabFocus
SkyAICampus
PrivacyTermssupport@skyaicampus.com© 2026 SkyAI Campus
Log inSign up

Learn

HomePracticeConcept cardsCode LabSky Tutor

Review

Revise todayMistake notebookProgress

Focus

Campus ForestFocus roomsSquads

Questions or feedback?
support@skyaicampus.com

  1. 1SELECT and WHERE
  2. 2Sorting and limits
  3. 3Aggregates and GROUP BY
  4. 4Joins
← SQL basics

Lesson 4 of 4

Joins

Watch, read the card, then practise. Inner joins · Left joins

Video coming soon

The video for this lesson is being recorded.

Meanwhile, the notes below and the 60-second cards cover the same ideas.

Practise this topic
  • Inner joins

    An inner join combines rows from two tables where a column matches, and drops rows with no match.

    Remember: JOIN keeps only the matches.

  • Left joins

    A left join keeps every row from the left table, with blanks (NULL) where there's no match.

    Remember: LEFT JOIN = all of the left table, matches where they exist.

Try the example in Code Lab

SELECT s.name, d.dept_name
FROM students s
JOIN enrolments e ON e.student_id = s.id
JOIN departments d ON d.id = e.dept_id
ORDER BY s.id;
← Aggregates and GROUP BY

In this lesson

  • Inner joins
  • Left joins

Practise this topic

5 questions at your level. The best way to make it stick.

Practise 5 questions