

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 10
click for more info
Not enough gems
Cost: 6 gems
1: Joins
incomplete
2: Namespacing on Tables
incomplete
3: Left Join
incomplete
4: Right Join
incomplete
5: Full Join
incomplete
6: Joins Quiz
incomplete
7: Joins Quiz
incomplete
8: Joins Quiz
incomplete
9: Join Practice
incomplete
10: Query Practice – Support Tickets
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Joins take some time to get used to, but the key to understanding them and using them effectively is practice!
To incorporate data from more than two tables, you can utilize multiple joins to execute more complex queries!
SELECT *
FROM employees
LEFT JOIN departments
ON employees.department_id = departments.id
INNER JOIN regions
ON departments.region_id = regions.id;
Our front-end team is finalizing the profile page for CashPal. We need to write a query that returns all the user data they need for an individual user's profile. The query must return the following fields:
Return only a single user record – specifically the one whose id is 6.