This is sql procedure which is clean duplicate in table