
If parent and component Column together has duplicate values then summing quantity column and past the new in adjusted column and remove all other rows.

If parent and component Column together has duplicate values then summing quantity column and past the new in adjusted column and remove all other rows.
in general we can do it by grouping the data and processing the group members