dbTalk Databases Forums  

creating a hierarchy for building tree

comp.database comp.database


Discuss creating a hierarchy for building tree in the comp.database forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
amitsol (Offline)
Junior Member
 
Posts: 1
Join Date: Aug 2006

Default creating a hierarchy for building tree - 08-18-2006 , 07:07 AM






hi guys
I have a table structure like below
Parent Child
PA A1
A1 A11
A1 A12
PA A2
PB A3
PB A12

Now using a view I need to display data in this format
Item Parent ItemID
PA null 1
A1 PA 2
A2 PA 3
A11 A1 4
A12 A1 5
PB null 6
A3 PB 7
A12 PB 8

It would be nice if someone help me....

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.