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.3. RIGHT JOIN / FULL OUTER JOIN

  • 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

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

Try these first

  1. 1.

    What does RIGHT JOIN accomplish?

    Hint

    Think about which table is prioritized in a RIGHT JOIN.

  2. 2.

    Write a SQL statement using FULL OUTER JOIN to find all customers and their orders.

    Hint

    Remember it combines all records from both tables.

  3. 3.

    What type of records does RIGHT JOIN return?

    • Only from the left table
    • Only from the right table
    • Both tables with priority on the right
    Hint

    Focus on which table data is prioritized.

  4. 4.

    FULL OUTER JOIN includes records from which tables?

    • True
    • False
    Hint

    Recollect the definition of FULL OUTER JOIN.

  5. 5.

    Given two tables: employees and departments, write a SQL query to find employees even if they are not assigned to any department. Include the department name if present.

    Hint

    Think about focusing on employee data and what happens if they belong to no department.

  6. 6.

    Create a query using FULL OUTER JOIN that lists all products and sales, but marks products not sold with NULL.

    Hint

    Focus on ensuring every product appears even if it has not been sold.

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