Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple rows as comma separated list

Status
Not open for further replies.

BDC2

Programmer
Mar 14, 2002
435
GB
Hi,

I have 3 tables:
T_Template containing a list of templates
T_Field containing a list of fields
T_Template_Fields containing a list of many field IDs against the Template ID

If I try this:
Code:
select FieldID from T_Template_Fields where templateid = 1
I get 5 rows returned containing 5 Field IDs.

The output that I'm after is just one row containing a comma separated string of these 5 Field IDs, can anyone help me?

BDC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top