Some rows have duplicates. some don't. I want to return both but without the duplicates
for Example:
11,2,5
11,4,7
12,3,9
12,6,8
12,3,9
Should return: 4 not 5 nor 3.
Would the code below accomplish this?
select RO.OrderNumber, RO.Item, RO.RepID
from dbo_RepOrderItem RO
groupby...