There is no role...I do not care about it..but I need to select a value from both records...randomly or the top 1...
ok then James suggestion or below would do
SELECT Field1, Field2,Field3, Field4
FROM
(
SELECT Field1, Field2, SUM(Field3) OVER PARTITION BY (Field1, Field2) AS Field3, Field4,ROW_NUMBER() OVER (PARTITION BY Field1, Field2 ORDER BY Field4) AS Seq
FROM Table
)t
WHERE Seq=1
------------------------------------------------------------------------------------------------------ SQL Server MVP http://visakhm.blogspot.com/