MicroZealous
IS-IT--Management
I have a simple Budget database, with expense line items that relate to Organization Units. The Organization Units are in a tree structure, with each Unit relating to one Unit that is higher up the tree. Currently, there are three levels, but I need to provide for four or five in the future. I can sum up the amounts for each Unit easily enough, but I need to also include line items from all related lower levels, if any. I have an Organization table with a row for each Unit that includes the ID of the Unit it relates to in the next level up. This seems like a common application, but I’ve had the flu for the last week and can’t seem to focus enough to design the query. Thanks in advance.