SQL practice problems
Solve each problem in your browser on a real PostgreSQL engine. Answers are checked against hidden test data.
Basics
- Veterans Only — Easy
- Rookie Class of 2025 — Easy
- Unknown Origins — Easy
- Podium — Easy
- Price Tags — Easy
Text & Dates
- Name Tags — Easy
- Sign-up Months — Easy
- Account Age — Easy
- Player Labels — Easy
- Item Codes — Easy
- Weekend Warriors — Medium
- Rush Hour — Medium
- Weekly Sales — Medium
- Time Served — Medium
Aggregation
- Nations of the Arena — Easy
- Shop Summary — Easy
- Busy Days — Easy
- Repeat Buyers — Easy
- First and Last Seen — Easy
- Big Spenders — Medium
- Win Rate — Medium
- Potions or Steel — Medium
- Country Roster — Medium
- Category Totals — Medium
- Guild Hoppers — Medium
- Favourite Items — Medium
Joins
- Match Report — Easy
- Dusty Shelves — Easy
- Guild Roster — Easy
- Victory Tally — Medium
- Mentor Board — Medium
- Rematch! — Medium
- Item Reach — Medium
- Compatriots — Medium
- Pacifists — Medium
- Guild Sizes — Medium
- Founding Members — Medium
Subqueries & CTEs
- The Runner-Up — Medium
- Above the Local Average — Medium
- Best Seller — Medium
- Still Waiting — Medium
- Fighters and Shoppers — Medium
- Loyal Customers — Medium
- Big Wallets — Medium
- Free Agents — Medium
Window Functions
- National Champions — Medium
- Mind the Gap — Medium
- Running Tab — Medium
- Top Two Per Shelf — Medium
- First Purchase — Medium
- Quartiles — Medium
- Time Between Logins — Medium
- Growth Curve — Medium
- Level Ranks — Medium
- Rolling Average — Medium
- Guild Elders — Medium
- Share of Wallet — Hard
- Customer of the Month — Hard
Boss Fights
- Mentor Lineage — Hard
- Monthly Growth — Hard
- Hot Streak — Hard
- Proud Mentors — Hard
- Quiet Days — Hard
- Revenge — Hard
- Guild Power — Hard
- Double Agents — Hard
- On Fire — Hard