Guest User

Untitled

a guest
Oct 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. ;WITH cte
  2. AS (SELECT ROW_NUMBER() OVER (PARTITION BY Col1, Col2, Col3
  3. ORDER BY ( SELECT 0)) RN
  4. FROM #MyTable)
  5. DELETE FROM cte
  6. WHERE RN > 1;
Add Comment
Please, Sign In to add comment