How can I get these lines (the same lines with minimal operation, and it’s not always 2):

from this?

And that’s my select:
select SCR.order_number, SCR.product_code, REL.operation, REL.quantity
from scrDATA as SCR INNER JOIN
relBDE as REL ON SCR.order_number = REL.order_number
I need to count a pieces for order_number and product_code (e.g. 1500 pcs for order_number FA36001607 and 5 pcs for order_number FP7201127)
Something like: