SQL Claude Dojo Advanced

Your SQL

Reruns on every keystroke against a fresh copy of the data
    Tables, constraints and indexes
    What this dojo understands
    • SELECT with DISTINCT, TOP, INNER/LEFT JOIN, WHERE, GROUP BY, HAVING, ORDER BY, OFFSET…FETCH
    • AND/OR/NOT, IS NULL, IN, BETWEEN, LIKE, CASE, CAST, + − * / %
    • COUNT, SUM, AVG, MIN, MAX (with DISTINCT); UPPER, LOWER, LEN, LEFT, RIGHT, SUBSTRING, TRIM, REPLACE, ROUND, ABS, CEILING, FLOOR, ISNULL, COALESCE, NULLIF, CONCAT
    • INSERT … VALUES, INSERT … SELECT, UPDATE, DELETE, CREATE [UNIQUE] INDEX … INCLUDE, DROP INDEX
    • BEGIN TRAN, COMMIT, ROLLBACK, SET XACT_ABORT ON
    • Not yet: subqueries, CTEs, RIGHT/FULL/CROSS JOIN, variables, CREATE TABLE.
    • This browser model implements a subset of T-SQL. Its plans and page-read estimates are educational simulations, not SQL Server actual plans or measurements. Verify optimizer, locking, and error-handling behavior on SQL Server.
    • XACT_ABORT is modeled for these runtime-error exercises. It does not make compile errors transactional; real SQL Server has additional error-handling rules.

    Simulated execution plan

    Runs locally in your browser. No SQL is sent to the warehouse database.

    Results and messages

    Data after the batch