Вот еще один похожий: Many times, a son has the same name as his father. (George Abbott had a son named George.) Find all such pairs, and list their names, the father's birth date, and the son's birth date.
Получается только выбрать всех, у кого в принципе есть отцы (father.person.id), а вот как смэтчить с именами отцов - не понимаю.
no subject
Date: 2012-09-29 08:58 pm (UTC)Many times, a son has the same name as his father. (George Abbott had a son named George.) Find all such pairs, and list their names, the father's birth date, and the son's birth date.
Получается только выбрать всех, у кого в принципе есть отцы (father.person.id), а вот как смэтчить с именами отцов - не понимаю.