Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql find duplicates

select * from (
  SELECT id,
  ROW_NUMBER() OVER(PARTITION BY column1, column2 ORDER BY id asc) AS Row
  FROM tbl
) dups
where 
dups.Row > 1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgresql #find #duplicates
ADD COMMENT
Topic
Name
5+6 =