mdm vergütung

This commit is contained in:
2026-05-27 11:40:21 +02:00
parent bfd18b5154
commit 7431a845ce
2 changed files with 4 additions and 4 deletions

View File

@@ -3428,11 +3428,11 @@ Module Mail
SELECT
COUNT(*) AS Anzahl,
Datenquelle,
MONTH([Transaction date]) AS [Month],
YEAR([Transaction date]) AS [Year]
MONTH(Billingdate) AS [Month],
YEAR(Billingdate) AS [Year]
FROM [VERAG].[dbo].[tblMautbericht]
WHERE YEAR([Transaction date]) = " & yearVal & " and Datenquelle not in ('IDS')
GROUP BY Datenquelle, MONTH([Transaction date]), YEAR([Transaction date])
WHERE YEAR(Billingdate) = " & yearVal & " and Datenquelle not in ('IDS')
GROUP BY Datenquelle, MONTH(Billingdate), YEAR(Billingdate)
) AS temp
ORDER BY Datenquelle, temp.[Year], temp.[Month];"