Postgres Find Duplicate Rows Sql Server