SELECT can subtract a discount to create a net amount without changing row count.
highlighted = computed this step
Input table
Start with gross amounts and exact discount amounts.
Order charges
Select query
Subtract discount from gross_amount and name the result net_amount.
gross_amount minus discount AS net_amount
Output table
The row count stays the same; each output row has the recomputed net amount.
net amounts