Lookup Parent Values to Generate a String [message #1509] |
Tue, 07 May 2002 09:06 |
Rob
Messages: 70 Registered: January 2000
|
Member |
|
|
I have a table where data is organized into multiple levels. I have the need to pass into a procedure the lowest level and perform a lookup up each level to the top of the hierarchy. The data looks like this...
PK Level Value ParentValue
101 1 USA
102 2 WA 101
103 3 Seattle 102
I need to be able to output something like this:
Seattle/WA/USA
I am familar with cursors to generate a running total, is there a way to do this with cursors? I appologize if this is a simple question, but I am very much a newbie.
Any help is greatly appreciated...
|
|
|
|
|