Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Flowing Fount of Yak Knowledge
SELECT Client, COOID FROM
COUNT(*) OVER(PARTITION BY COID) AS N
)s WHERE N > 1;
Aged Yak Warrior
Very Important crosS Applying yaK Herder
FROM Table t
INNER JOIN (SELECT COID
GROUP BY COID
HAVING COUNT(DISTINCT Client) > 1
ON t1.COID = t.COID
quote:Originally posted by SQLNoob81Still not working, this gives me results if client name appears more than 1, I only want results where the client name is different but has the same COID