I have a dataset containing (among others) the values hierarchyids and the Parent-hierarchyids. For another query I need the lowest common ancestor of the hierarchyids and since I am fairly new to sql and espacially hierarchyids.
ID HID ParentHID
1 0x5CB280 0x5CA0
2 0x5CABBB08 0x5CABBA
3 0x5CB270 0x5CA0