planetdrouin
Technical User
I have a table which contains a list of categories which looks like:
Category ID Category Name
11 Cash
111 Petty Cash
12 Bank Account
121 Citibank
122 Wells Fargo
21 Utilities
211 Telephone
2111 SBC
2111 AT&T
etc...
I would like to be able to retrieve a list from the above table which only selects the lines which have no subdirectories. For instance, I want to filter out line 11, as it is the total of its subdirectories, which in this case is simply line 111.
Has anyone encountered this before or know how to write a function which would do this?
Lawrence
Category ID Category Name
11 Cash
111 Petty Cash
12 Bank Account
121 Citibank
122 Wells Fargo
21 Utilities
211 Telephone
2111 SBC
2111 AT&T
etc...
I would like to be able to retrieve a list from the above table which only selects the lines which have no subdirectories. For instance, I want to filter out line 11, as it is the total of its subdirectories, which in this case is simply line 111.
Has anyone encountered this before or know how to write a function which would do this?
Lawrence