dbTalk Databases Forums  

SQL: Connecting Strings of a Group

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss SQL: Connecting Strings of a Group in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default SQL: Connecting Strings of a Group - 01-13-2008 , 10:12 PM






Is there a way in SQL to concatenate strings from different rows
into a list?

My boss wants a report of consolidated data with one column being
the transaction numbers involved in the consolidated data. I could
easily concatenate with xBASE commands, but is there a way with just
SQL?

Example: I have
client dollars trnnbr
------ ------- ------
ABC 100.00 101
DEF 200.00 117
DEF 300.00 123
DEF 400.00 128
GHI 500.00 108
GHI 600.00 111
and want
client totdlrs trnnlist
------ ------- ------
ABC 100.00 101
DEF 900.00 117, 123, 128
GHI 1100.00 108, 111

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.

Reply With Quote
  #2  
Old   
Salty Dog
 
Posts: n/a

Default Re: SQL: Connecting Strings of a Group - 01-14-2008 , 09:31 AM






Gene, is the data in FoxPro or a SQL database? I've seen a command
for something like this in MySQL.

Eric

Reply With Quote
  #3  
Old   
Salty Dog
 
Posts: n/a

Default Re: SQL: Connecting Strings of a Group - 01-14-2008 , 09:31 AM



Gene, is the data in FoxPro or a SQL database? I've seen a command
for something like this in MySQL.

Eric

Reply With Quote
  #4  
Old   
Salty Dog
 
Posts: n/a

Default Re: SQL: Connecting Strings of a Group - 01-14-2008 , 09:31 AM



Gene, is the data in FoxPro or a SQL database? I've seen a command
for something like this in MySQL.

Eric

Reply With Quote
  #5  
Old   
Salty Dog
 
Posts: n/a

Default Re: SQL: Connecting Strings of a Group - 01-14-2008 , 09:31 AM



Gene, is the data in FoxPro or a SQL database? I've seen a command
for something like this in MySQL.

Eric

Reply With Quote
  #6  
Old   
Salty Dog
 
Posts: n/a

Default Re: SQL: Connecting Strings of a Group - 01-14-2008 , 09:31 AM



Gene, is the data in FoxPro or a SQL database? I've seen a command
for something like this in MySQL.

Eric

Reply With Quote
  #7  
Old   
Salty Dog
 
Posts: n/a

Default Re: SQL: Connecting Strings of a Group - 01-14-2008 , 09:31 AM



Gene, is the data in FoxPro or a SQL database? I've seen a command
for something like this in MySQL.

Eric

Reply With Quote
  #8  
Old   
Salty Dog
 
Posts: n/a

Default Re: SQL: Connecting Strings of a Group - 01-14-2008 , 09:31 AM



Gene, is the data in FoxPro or a SQL database? I've seen a command
for something like this in MySQL.

Eric

Reply With Quote
  #9  
Old   
Salty Dog
 
Posts: n/a

Default Re: SQL: Connecting Strings of a Group - 01-14-2008 , 09:31 AM



Gene, is the data in FoxPro or a SQL database? I've seen a command
for something like this in MySQL.

Eric

Reply With Quote
  #10  
Old   
Salty Dog
 
Posts: n/a

Default Re: SQL: Connecting Strings of a Group - 01-14-2008 , 09:31 AM



Gene, is the data in FoxPro or a SQL database? I've seen a command
for something like this in MySQL.

Eric

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.