Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 202 Bytes

find-duplicate-rows-inside-table.md

File metadata and controls

11 lines (10 loc) · 202 Bytes
select * from (
  SELECT id,
  ROW_NUMBER() OVER(PARTITION BY merchant_Id, url ORDER BY id asc) AS Row
  FROM Photos
) dups
where
dups.Row > 1

Source