SQL exercise · about 5 minutes · free
JOIN the Tables
Real data lives in many tables. JOIN is how you stitch the story together.
JOIN ... ON matches rows from two tables using a shared key.
SELECT p.name, m.score FROM players p JOIN matches m ON m.player_id = p.id
Your quest: Show each player's
name and their total score as total_score, highest first.Starter code
-- join players and matches -- Run this first to see the players table, then change it to answer the task. SELECT * FROM players LIMIT 5;