Loading…
A CTE is a named temporary result set that exists only during query execution.
WITH cte_name AS (
SELECT ...
)
SELECT * FROM cte_name;
Create a CTE called expensive_products that selects products where price > 100.
Then select the name and price from your CTE, ordered by price descending.
Downloading SQL engine… (one-time)
This runs entirely in your browser and is cached for next time.