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:22:59
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

what is query or procedure for this?
please help.

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

- Advertisement -