Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > SQL: Connecting...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 827 of 852
Post > Topic >>

SQL: Connecting Strings of a Group

by Gene Wirchenko <genew@[EMAIL PROTECTED] > Jan 13, 2008 at 08:12 PM

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

     My boss wants a re****t 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.
 




 4 Posts in Topic:
SQL: Connecting Strings of a Group
Gene Wirchenko <genew@  2008-01-13 20:12:41 
Re: SQL: Connecting Strings of a Group
Salty Dog <eric.selje@  2008-01-14 07:31:50 
Re: SQL: Connecting Strings of a Group
Gene Wirchenko <genew@  2008-01-14 17:38:42 
Re: SQL: Connecting Strings of a Group
Bernhard Sander <fuchs  2008-01-15 09:47:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 1:02:03 CDT 2008.