if I have a mysql table person
and I want to find the person.id's of the people that have same name and from the same country, how would I do that?
something like:
select *
from person p
join person p2
where p.country = p2.country and p.name = p2.name
but the example above if obviously not the way to go :\