Practice Advanced Joins and Set Operations - 19.1.5 | 19. Advanced SQL and NoSQL for Data Science | Data Science Advance
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

Advanced Joins and Set Operations

19.1.5 - Advanced Joins and Set Operations

Enroll to start learning

You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What does a FULL OUTER JOIN do?

💡 Hint: Think about how rows might not match between two tables.

Question 2 Easy

What does SELF JOIN allow you to do?

💡 Hint: Consider comparing entries within the same entity.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What will a FULL OUTER JOIN return?

Only matching rows
All rows from both tables
Only rows from the left table

💡 Hint: Consider what each join type typically provides.

Question 2

True or False: INTERSECT will return all rows from the first dataset.

True
False

💡 Hint: Think about the commonality of data between two datasets.

1 more question available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Create an SQL query that utilizes FULL OUTER JOIN and CROSS APPLY between two tables, demonstrating how they work together in a complex dataset.

💡 Hint: Consider how CROSS APPLY can dynamically apply functions to pulled rows.

Challenge 2 Hard

Write a complex query using INTERSECT and EXCEPT to filter down a list of products that are available in both the current inventory and the archived sales, excluding any that are marked as discontinued.

💡 Hint: Break down the query by defining each part before composing it together for clarity.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.