Let\'s say I have the following table:
category | guid ---------+----------------------- A | 5BC2... A | 6A1C... B | 92A2...
SELECT top 1 category, guid FROM myTable GROUP BY category,guid