SQL Statement [message #21295] |
Thu, 25 July 2002 01:07 |
AL
Messages: 24 Registered: October 2000
|
Junior Member |
|
|
Well I'm new to SQL Programming and
I have a table(structure of a product) and I am tryng to create a substitute table that presents some information in columns instead of lines.
Ex : Table Structure :
Parent_part_ID line_item_no Component_part
-------------- ------------ --------------
1 1 A
1 2 B
1 3 C
1 4 D
2 1 X
2 2 Y
2 3 Z
I want to present information in this form
Parent_part_ID Cponent_part_1 ... Cponent_part_N
-------------- -------------- --------------
1 A D
Can anyone help
Thanks in advance
|
|
|
Re: SQL Statement [message #21302 is a reply to message #21295] |
Thu, 25 July 2002 06:57 |
hi
Messages: 15 Registered: February 2002
|
Junior Member |
|
|
It doesnot make sense though, because how do you know how many component rows exist for a parent part. For example till today you have like a max of component rows as 10 and tomorrow you have a 11 rows for component for each parentpart.
|
|
|
|