Problems / Greater Than All Accessories / Editorial
price > ALL (SELECT price FROM products WHERE category = 'Accessories')
> ALL
> MAX
price > (SELECT MAX(price) ...)
category <> 'Accessories'
product_id
The most expensive accessory costs 95.00 — more than the Budget Earbuds (60.00) or the Desk Lamp (85.00) — so the bar is a global one, not per-category, and cheap non-accessories genuinely fail it. The Smart Display at exactly 95.00 documents the strictness: > ALL means strictly greater, so a tie with the maximum is out. In PySpark, the scalar "max accessory price" becomes a one-row DataFrame crossJoined onto every product row — the DataFrame idiom for a scalar subquery.
Solve Greater Than All Accessories yourself →