Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL question: GROUP BY: Is there a "SUM" for strings?

Re: SQL question: GROUP BY: Is there a "SUM" for strings?

From: Wolfram Roesler <wr_at_spam.la>
Date: Wed, 26 Apr 2006 09:01:20 +0200
Message-ID: <Xns97B15BC6FB535wrgrpde@62.153.159.134>


Frank van Bortel <frank.van.bortel_at_gmail.com> wrote in news:e2kv13$5ej$1 @news3.zwoll1.ov.home.nl:

> Sum strings?!
> SQL Server background, where concatenation is done with '+'?

No :)

> In Oracle it's '||' - two vertical bars

Yes, thanks, but it won't work with GROUP BY, just like '+' doesn't for numbers. Look at my example: What should I write instead of SUM if colname was a VARCHAR2? As it seems, however, there's no easy solution.

Thanks anyway
W. Roesler Received on Wed Apr 26 2006 - 02:01:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US