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 -> SQL question: GROUP BY: Is there a "SUM" for strings?

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

From: Wolfram Roesler <wr_at_spam.la>
Date: Tue, 25 Apr 2006 12:17:22 +0200
Message-ID: <Xns97B07D0448CE9wrgrpde@62.153.159.134>


Hello,

is there something like SUM, but for strings?

I can do

	SELECT SUM(colname)
	FROM mytable
	WHERE whatever
	GROUP BY whatever;

to sum up numbers of a group, but how would I do this if colname was a VARCHAR2 (doing string concatenation instead of addition)?

I'm still on Oracle 8.1.6.3.

Thanks for your help
W. Roesler Received on Tue Apr 25 2006 - 05:17:22 CDT

Original text of this message

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