SUM-Function for strings, to concatenate strings

L

Liz Helmecke

Hello NG,
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 STRING
-> doing string concatenation instead of addition !

the only way I found was to write my own function and use it in the query.
Is there an easier way?

Thanks for your help
Liz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top