Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • If it's a one time job - why wouldn't you run it in postgresql console? Commented Nov 6, 2014 at 0:02
  • not it is not one time job but it is weekly and we always get some duplicate values. thanks Commented Nov 6, 2014 at 0:06
  • 4
    why do you get duplicate values? What if you just don't put it there at first place? Commented Nov 6, 2014 at 3:02
  • Are duplicates defined by the columns (name, address, zipcode)? Are there other columns? Are those irrelevant? Different? Is any combination of columns unique? If some columns differ between duplicates, which row out of each set do you want to keep? Commented Nov 6, 2014 at 6:13
  • 1
    WORKS FOR POSTGRESQL (ALSO WORKS IN AWS REDSHIFT) View the answer to this question on another page Commented Aug 10, 2017 at 9:02