Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Удаление одинаковых строк в таблице с двумя текстовыми столбцами Name и Surname
- WITH cte AS (
- SELECT
- ROW_NUMBER() OVER (PARTITION BY Name, Surname ORDER BY Name) AS RN
- FROM
- dbo.Test
- )
- DELETE FROM cte WHERE RN > 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement