SQLITE: merging rows into single row if they share a column

后端 未结 3 866
别那么骄傲
别那么骄傲 2021-02-10 02:53

From a previous post, I have the following view in sqlite3:

CREATE View AttendeeTableView AS

SELECT  (LastName || \" \" || FirstName) as AttendeeName,  
                


        
3条回答
  •  一整个雨季
    2021-02-10 03:24

    The answer from this post will help you turn

    Name     | company
    ---------+----------
    Doe John | company A
    Doe John | company B
    

    into

    Name     | company-1 | company-2
    ---------+-----------+----------
    Doe John | company A | company B
    

提交回复
热议问题