I'm working on a similar project at Martijn,

select distinct(owner), pet
from pet
group by pet; //

Could some one please help me with printing out the results.

Thanks in advance.