how do i remove duplicate data using join in sql? this image shows that the children table is connected to master_list table by using the "pid" as foreign key.