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.
Constraint Violating Yak Guru
Flowing Fount of Yak Knowledge
;WITH c AS
SELECT ROW_NUMBER() OVER(PARTITION BY col1, col2 ORDER BY col1) AS N
WHERE N > 1;
Very Important crosS Applying yaK Herder
SELECT ROW_NUMBER() OVER (PARTITION BY Email ORDER BY NEWID()) AS Seq