Query Quest PostgreSQL Course

Final boss

You can now build tables, change records, connect data, and inspect performance. Your final mission combines joins, aggregation, sorting, and a limit.

What you'll learn

Join the three tables, count completions by player, then sort by that count. A LEFT JOIN would also include players with zero completions.

Your mission

Show the top 3 players by completed quests. Return username and quests_done, highest first.

Enable JavaScript to run SQL in the interactive lesson.