SELECT        TOP (100) PERCENT YEAR(Statusdatum) AS Jahr, Status, SUM(Total) AS Expr1
FROM            dbo.Faktura
GROUP BY YEAR(Statusdatum), Status
HAVING        (Status <> '9')
ORDER BY Jahr