Here is a graph to the mentioned table in order to explain it a bit better: For 1,7 and 8 new_country should be the the value of country_child, because there is no mother above. For 5,6,2,3 and 4 new_country should be DE because 1 is the "highest" mother of them all in their chain upwards. 7 doesn't have a child and 9 Need as new_country NL, because 8 is its "highest" mother. I hope this clarifies. Thanks!
... View more