SELECT MobilePhone, COUNT(MobilePhone) OVER(PARTITION BY MobilePhone) AS CountMobilePhone
FROM ES_TABLE
WHERE applic IN (SELECT appl
FROM Campaign JOIN Client ON Campaign.ClientID = Client.ClientID
WHERE Client.ClientCode = 'OPIS')
das ist meine AbfrageCOUNT in COUNT OVER PARTITION SQL Server
die Ausgabe
MobilePhone | CountMobilePhone
121928 | 1
912819 | 1
129819 | 3
198219 | 5
918298 | 5
I Gruppe für das Zählen von CountMobilePhone wollen. so zu sein
Count | CountMobilePhone
2 | 1
1 | 3
2 | 5
ist das möglich? Ich habe mehrmals versucht, aber immer Fehler
Danke, es funktioniert – TARA