The T-SQL reference for SQL Server, with an AI that knows it

Every T-SQL pattern, runnable in your browser

A practical T-SQL (SQL Server) reference for the clauses, joins, window functions, and edge cases that break production queries. Most examples run live in your browser; the syntax that’s genuinely SQL-Server-only is called out clearly where it can’t. An AI assistant is grounded in every page.

This runs real SQLite — edit it

SQL playground
Loading editor…
⌘/Ctrl + Enter

Everything in one place

Reference, runnable examples, an AI assistant, and a diagnostic tool for the query that won’t cooperate.

59 reference pages24 SQL errors decoded7 in-depth guides

Runnable, not just described

Every example executes against a real database, right on the page. Edit it, run it, break it.

AI that's grounded

The assistant answers from these exact docs and links the page it used — not a guess from training data.

Edge cases first

The gotcha that makes the query wrong in production is the point of the page, not a footnote at the bottom.

From the blog

All posts

Start with the clause that’s biting you

Or open the playground and paste the query you’re stuck on.