Interview patterns: Nth highest, top per group, duplicates · exercise 1 of 1 · free preview
Nth highest is the classic interview question. Two common answers: ORDER BY ... DESC with LIMIT 1 OFFSET n-1, or a subquery with MAX. Use whichever you can explain.
Find the second most expensive product. Show its name and unit_price.
Tables in this practice shop
customersproductsordersorder_items