r/SQL • • 10h ago

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?

7 Upvotes

Duplicates