mySQL creating list of summed items -


i summing on table , additional column list of values not grouped over. so,

c1   c2    c3     z     1     y     2 b     z     4 b     y     2 b     x     3 c     x     4 

and select c1, sum(c3) sc3, somemagicfunction(c2) t group c1 get

c1   sc3    c3      3   y,z  b     9 x,y,z  c     4     x 

is there way achieve this?

i believe magic function looking group_concat. see http://www.mysqlperformanceblog.com/2013/10/22/the-power-of-mysqls-group_concat/


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -