Hello à tous.
Je dois interroger une base de données et formater le résultat en changeant les labels et en effectuant des sommes.

Par exemple, sur la requete ci dessous :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
Select
	case 
		-- Renommage des pays ---
		when country = 'France' then 'FR'
		when country IN ('Austria','Germany','Switzerland') then 'DE'
		when country IN ('Belgium','Denmark','Ireland','Sweden') then 'ROE'
		when country = 'Italy' then 'IT'
		when country = 'Netherlands' then 'NL'
		when country = 'Spain' then 'ES'
		when country = 'United Kingdom' then 'UK'
		else 'N/A'
	end as 'Country',
	count(*) 'Count'
From 	
	ma_table
Where 
	country IN ( 
	'Austria','Belgium','Denmark','France','Germany','Ireland','Italy','Netherlands','Spain','Sweden','Switzerland','United Kingdom'
	)
Group by country
j'obtiens ce genre de réponse :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
DE	20321
ROE	42799
ROE	15473
FR	280692
DE	212246
ROE	9335
IT	77449
NL	53281
ES	99064
ROE	32094
DE	75391
UK	214727
Sauf que je voudrais que toutes les lignes ayant le meme label soient ajoutées.
ex, pour ROE, on devrait avoir 42799+15473+9335+32094

Quelqu'un sait-il comment je peux m'en sortir?

merci d'avance