I have following problem. I created a table named parentchildrenName. This Table includes the name of a parent and the name of one child in every row. Now i want to return the names of a pairs of parents which have the same child with their childName. This means it should return the name of parent1 and parent2 with the specific childName like this:
SELECT parentName1, parentName2 childName FROM parentchildren
I am not quit sure how i could make this command work in mysql any help would be appreciated.