The only place that I that used a recursive function in life is with Bill of Materials.
Master Part Table
ID, Parent ID, PartNr, Quantity
1,0, PART A, 2
2,1, PART B, 1
3,2, PART C, 1
Recursive functions works great with Bills of Materials as it allow you unlimited levels of bills of materials.