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')
thats my query
conclusion
MobilePhone | CountMobilePhone
121928 | 1
912819 | 1
129819 | 3
198219 | 5
918298 | 5
I want to group CountMobilePhone for counting. to be like that
Count | CountMobilePhone
2 | 1
1 | 3
2 | 5
perhaps? I tried several times but getting error
source
share