Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Column Concatenation

$
0
0
I have 2 tables (forgive my syntax)

BID
=======
BIDID INT,
NAME NVARCHAR(10)
PK(BIDID)

BIDLINE
========
BIDLINEID INT(10)
BIDID INT (FK),
PK(BIDID, BIDLINEID)

So for each 'BID' Row there are many 'BIDLINE' Rows. What I am trying to do is: select all 'BID' Rows showing the concatenated 'BIDLINE.BIDLINEID' so.. the BIDLINEID's would be delimited list of all the bidlinesid's associated with this bidid

RESULTS:
==========================
BIDID | BIDLINEIDS

1 | 1,2,3,4,5
2 | 1,2,3
3 | 1,2,3,4,5,6,7

Viewing all articles
Browse latest Browse all 13329

Trending Articles