I have a table with many project id's and for each project ,I have hierarchical structure as below.
My input is risk id..How can I get the top level parent for the input risk ID.
IF I give 25 as Input I should get 23 as output.how can I achieve this.