Postgresql Find Duplicate Rows Mysql Interview Queries