Recursive function problem
Posted on 2006-11-14
I have a datatable with the following columns:
Heading, Subheading, Number1, Number2, Number3, Number4
I need to sum the number columns for each Heading and Subheading. How do I do this using a recursive function? I vaguely remember recursion when I was studying, is it the best approach? The select statement that fills this datatable is ordered by Heading, Subheading.
In the future I may need to add deeper levels below the sub heading. I just need some pointers on how to get started writing the algorithm, the general idea of how to solve this.