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

Multiple records one column separated by comma (,)

Status
Not open for further replies.

visopenlive

Programmer
Jul 1, 2010
19
0
0
US
Hai all

I am working on something like this. Hope someone can help me.
Consider this as sample data

Field1 Field2
John GA
Mark FL
Steve MI
John CA
John IL

Can someone assist me on a query to have data like this?

Field1 Field2
John GA, CA, IL
Mark FL
Steve MI

Thanks a lot..
 
What kind of database are you using? Microsoft, Oracle..?? There might be easy solutions depending on the database you are using.

Nitin
 
Yes, I encounter this problem.
Handled it two ways:
1. Importing through MS Access to DBMS
2. Changing the column deliminator to something else, like |
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top