Loading…
Use a CTE to transform inventory_movements by computing the absolute value of change_quantity (ABS(change_quantity)) for each movement. Then select movement_id and that absolute value from the CTE. Only show rows where movement_id <= 10, ordered by movement_id ascending.
Create 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.