Hi I am getting below error: "Selected non-aggregate values must be part of the associated group" even after Assigning GROUP BY
SELECT OA.CustNmr
,TRIM(COALESCE(A.AcctName,' ') ||' '|| COALESCE(A.Acct2Name,' ') )AS AcctStyling
,COUNT(*) OVER(PARTITION BY OA.CustNmr, A.LocationNR, AcctStyling) AS CNT_Cust
FROM wa.tsn_Open OA
JOIN Account1 A ON OA.AcctNr = A.AcctNr
WHERE AcctStatCd = 'O' --Open
GROUP BY 1
Any insight is highly appreciated.