Query To Get Duplicate Records In Postgresql