Merge multiple rows into one column without duplicates

后端 未结 4 798
轻奢々
轻奢々 2021-02-01 02:44

I am working on a query that will collect data from a table and display the data for a report.

The data looks like this:

Player Score
001      10
001           


        
4条回答
  •  别跟我提以往
    2021-02-01 03:29

    A bit late and slightly off-topic as for another RDBMS, but I found this thread searching for a solution to this problem in Postgres. I found one, so if anyone else needs to solve this problem in Pg:

    SELECT string_agg(DISTINCT ,'delimiter') FROM  GROUP BY 
    
        

    提交回复
    热议问题