There is table1 (is, surename)
, table2(id, reporter,assign)
reporter
and assign
at table2 refer to Id
in table1. As a result, you need to make a selection of all the records of table2, excluding duplicate duplicates, for example reporter=2
, assigne=1
should not be duplicated as assigne=2
, reporter=1