Postgresql Find Duplicate Rows Mysql Interview