I know that the question sounds like this is going to be an easy question, but let me explain. I have a result set where I get
Count Team Score Team2 Score
-----------------------------------------
10 TeamA 1 TeamB 2
7 TeamB 2 TeamA 1
Now, because I have the same result, but the Teams are in different columns I get the 2 results. I am looking for a way of retrieving the one result like so:
Count Team Score Team2 Score
-----------------------------------------
17 TeamA 1 TeamB 2
Is this possible?
EDIT
SELECT TOP 5 SUM([CountryCount]) AS [CountryCount]
,[Country], [CustomFieldB], [CustomFieldC], [CustomFieldD]
FROM (
SELECT COUNT([Country]) AS [CountryCount], [CustomFieldB], [CustomFieldC], [CustomFieldD]
,[Country]
FROM (
SELECT [CustomFieldA] AS [Country], [CustomFieldB], [CustomFieldC], [CustomFieldD]
FROM [Target]
WHERE [TargetListID] = xxx
) as tbl
GROUP
BY [Country], [CustomFieldB], [CustomFieldC], [CustomFieldD]
) as T
GROUP
BY [Country], [CustomFieldB], [CustomFieldC], [CustomFieldD]
ORDER
BY [CountryCount] DESC;