Guest_imported
New member
- Jan 1, 1970
- 0
I have a DB table (category) which contains three columns (name, id, and parentId). If I had the following three records.
bedroom,1,null
bed,2,1
sheet,3,2
I would like to write some sql that could print out the following.
bedroom
bedroom>bed
bedroom>bed>sheet
I have no idea how to do this... could someone lend a helping hand?
thanks... if this isnt the right forum could you point me in the right direction.
bedroom,1,null
bed,2,1
sheet,3,2
I would like to write some sql that could print out the following.
bedroom
bedroom>bed
bedroom>bed>sheet
I have no idea how to do this... could someone lend a helping hand?
thanks... if this isnt the right forum could you point me in the right direction.