Build a SQL SELECT with columns, joins, filters, grouping, and ordering.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Chosen columns, aliases, sources, joins, predicates, grouping, ordering, and limits are emitted in clause order. Identifiers are kept separate from literal values so parameters can remain placeholders.
Table: users
Table alias: u
Columns: ["u.name","o.total"]
Joins: [{"type":"INNER","table":"orders","alias":"o","on":"u.id = o.user_id"}]
Where: [{"column":"o.total","operator":">","value":100}]
Order by: [{"column":"o.total","direction":"DESC"}]
Limit: 10
SELECT u.name, o.total FROM users u INNER JOIN orders o ON u.id = o.user_id WHERE o.total > 100 ORDER BY o.total DESC LIMIT 10;
API list endpoints, reports, and analyst queries build SELECT statements.