im having this Statement:
SELECT CASE
WHEN teile LIKE 'S%' THEN
'vent'
ELSE
teile
END AS teile,
SUM(amount)
.
GROUP BY bereich, teile
The result is something like this
D1 10070
ER 6278
MO 6278
vent 20140
vent 20140
vent 20140
Now i want to summarize the amount of every "vent" and group it another time to "vent" to look like this :
D1 10070
ER 6278
MO 6278
vent 60420
tried it several times with different things but i just cant get it..