On 8/23/05, Paul Hastings <[EMAIL PROTECTED]> wrote: > well i think i can figure depth from the folder's full name > (INBOX.test.testDir, counting the number of folder separators in the > name) so this looks close. thanks i'll give it a whirl.
If you use Oracle DB then you can use the LEVEL, CONNECT BY and START WITH in your query. The LEVEL would be equivalent to the depth. Something like (untested): SELECT name,fullname,parentFolder,totalMessages, LEVEL FROM results.folders CONNECT BY parentFolder = PRIOR fullname START WITH parentFolder = ...your parent folder name here... -- Eddie Awad. http://awads.net/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216102 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

