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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Summary over Char field

Status
Not open for further replies.

subhash5678

Programmer
Joined
Feb 28, 2004
Messages
14
Location
US
Hi,

Can anybody let me know if there is any summary function to concatenate a character values in a row.

For example, I have the data similar to that given below:

Sample Data: Contract_ID Product_ID
1 ABC
1 DEF
2 GHI

I have to show all the product_id seperated by a comma in one row for each contract_id. I have to show the results in the report as follows:

Contract_ID Products
1 ABC, DEF
2 GHI

Can anybody help me in doing this?

Thanks
 
This must be done at the database level using a stored procedure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top