AllRounder.ai
Chapters in this course

Enrol to start learning

Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.

Enrol free

2. Joins (Combining Tables)

  • This section

    Practice test

    11 questions on this section. Wrong answers show you what to read again.

    Sign up to take it
  • Whole chapter

    Revision test

    Mixed questions from across the chapter. Your answers get marked.

    Sign up to take it
  • Quick

    Flashcard drill

    2 cards from this lesson. Good the night before a test.

Try these first

  1. 1.

    What does INNER JOIN do?

    Hint

    Think about how it works with overlapping data.

  2. 2.

    What is a LEFT JOIN?

    Hint

    What happens to non-matched records?

  3. 3.

    What does an INNER JOIN do?

    • A. Combines all records
    • B. Fetches matching records from both tables
    • C. Only shows records from the right table
    Hint

    Consider what it means for records to match.

  4. 4.

    True or False: A LEFT JOIN will return only matching records from the left table.

    • True
    • False
    Hint

    Think about the nature of all records being included.

  5. 5.

    Create a dataset of students and classes. Write a SQL query that lists all students and their classes, including students who are not enrolled in any classes.

    Hint

    Think of how you can keep all students in the results.

  6. 6.

    You have two tables: Employees and Projects. Use a FULL OUTER JOIN to find all employees and their projects, showing employees without projects and projects without employees.

    Hint

    Consider how to capture every employee and project, regardless of their pairing.

Exercises

Total Questions

2

Estimated Time

4 min

Passing Score

70%

Instructions

  • Read each question carefully
  • You can use hints if you need help
  • Complete all questions before submitting

4 more questions available

Enrol free

Quiz

Total Questions

2

Estimated Time

4 min

Passing Score

70%

Instructions

  • Read each question carefully
  • You can use hints if you need help
  • Complete all questions before submitting

1 more question available

Enrol free

Challenge Problems

Total Questions

2

Estimated Time

4 min

Passing Score

70%

Instructions

  • Read each question carefully
  • You can use hints if you need help
  • Complete all questions before submitting