From what FALCONSEYE described, if we have another record like following in the table temp_p,
7 person7 2
it should be included in the result. But none of the query from Mufasa or FALCONSEYE returns this record. I think the correct answer should like following:
select * from tmp_p...