PostgreSQL [DuckDB/PostgreSQL] I built a free practice site for intermediate & interview SQL: window functions, CTEs, anti-joins, cohorts
Most SQL practice I found either stopped at basic SELECT/JOIN or needed a local database set up. So I built Queryosity: you write queries against real typed tables in the browser (DuckDB, PostgreSQL-style), checked against real tests including hidden edge cases.
The focus is intermediate and interview-level patterns:
- window functions: running totals, moving averages, ranking, top-N per group
- CTEs and multi-step queries
- anti-joins and the NULL pitfalls (NOT IN with NULLs, COUNT(*) vs COUNT(col))
- dedupe, gaps & islands, month-over-month growth, cohort retention
- hints that nudge you toward the approach instead of giving the answer
Try any Easy problem without an account: queryosity.dev
There's a free plan; a paid plan adds the harder problems. Feedback welcome from people who write SQL daily: which patterns come up most in your interviews or work that I'm missing?
3
Upvotes
1
u/ReleaseTheBlacken 55m ago
We should create a compendium or pinned post for all the free content available provided by creators.
1
u/Choice_Wheel_2 14m ago
One thing that comes up constantly at work and rarely in practice sites is reading an EXPLAIN plan, like why a query seq scans or why a new index isn't used. A few problems on picking the right index would be useful. Also the homepage sells the whole data and AI stack, so someone arriving for SQL has to hunt.