Loading…
Create a CTE that selects only orders where total_amount > 1000. Then select order_id and from that CTE, ordered by ascending. This separates filtering from the final selection, improving readability.
total_amountorder_idCreate a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.