You can use a UDF or recursive query to accomplish this.
Regards
Joseph D'silva
Attachments
Library
Quick Reference
Archives
Sample Index
2007 Indexes