Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 parent - child relations

Author  Topic 

gsrinivas.
Yak Posting Veteran

56 Posts

Posted - 2009-06-01 : 04:19:10
hello all,
i have a table which has 2 columns ,
1.parent table name 2.child table name

now i want to make a new table.
ok i will show input and output tables.

parent child
------ -----
A B
B C
B D
C E
F G

default the out put table has all the values are null.
after processing ,the output table should be

A B C E
A B D null
F G null null

now what is the solution for this?
please help me.
the solution may be a procedure or a query

---------------------------------------------------
note : here, A,B,C,D.... are tablenames
---------------------------------------------------

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-06-01 : 04:27:48
Duplicate of http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=126802

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -