Coalescing values in a column over a partition

前端 未结 3 1734
悲哀的现实
悲哀的现实 2021-01-06 18:45

I have chosen to ask this question via an example as I think it most clearly illustrates what I am trying to do.

Say I have the following table:

mem         


        
3条回答
  •  失恋的感觉
    2021-01-06 19:07

    In Oracle this will do the job,

    select a.member,a.number,b.newcol from table a,(select member,replace(wm_concat(number),',','.') newcol from test11 group by member)b where a.member=b.member;
    

提交回复
热议问题