SQL syntax
A narrative guide to Pinot SQL syntax and the main constructs you use most often.
Core rules
SET useMultistageEngine = true;
SELECT "date", city, COUNT(*)
FROM orders
WHERE status = 'shipped'
GROUP BY "date", city
ORDER BY "date" DESC
LIMIT 20;Common query shapes
Engine-aware syntax
Where the details live
What this page covered
Next step
Related pages
Last updated
Was this helpful?

