I have a query that returns rows that may or may not be considered as duplicates due to the relationship.
For instance I get back 4 rows where 2 of them have the same ID, if I do the sum for this set of rows I do not want to sum twice the one with the…