SQLClash — competitive SQL challenges
SQLClash is a free website for practising SQL by solving bite-sized challenges and racing other players. Queries run in your browser on a real PostgreSQL engine (PGlite), so there is nothing to install. Each answer is checked against hidden test datasets.
Arcade: 67 problems in 7 chapters
- 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)
Your first accepted solve of a problem earns XP (Easy 20, Medium 50, Hard 100) and coins, and moves your Puzzle Elo rating. XP raises your level.
1v1 SQL Duels
Race another player through three problems in 20 minutes. Most problems solved wins; on a tie, the faster finish wins.
- Easy — write the query from scratch.
- Medium — fill in the blanks of a query.
- Hard — find the bug: a query that runs but returns the wrong result.
Rated matches use Duel Elo (everyone starts at 1200) and pay 20 coins for a win. If no opponent is found within about half a minute, a practice bot at your level steps in (10 coins for a win). You can also send a friend an unrated invite link.
Study: learn SQL from zero
A free roadmap of 17 short lessons in 4 stages (Basics, Filtering, Aggregation, Joins), with examples you can run in the browser and 49 practice questions checked on hidden data. No account needed — start at sqlclash.com/study.
Leaderboards
Separate rankings for level (XP), Puzzle Elo and Duel Elo at sqlclash.com/leaderboard.
Play the Arcade · Start a duel · Sign in with GitHub or email to save progress.