简体   繁体   中英

Create Attribute of Comma Seperated Values [duplicate]

I have a loans dataset and each row represents a loan plan and has a customer ID associated with it.

Loan_ID    Customer_ID    
1          A            
2          B           
3          A           
4          C 
5          A
6          C     

I want to create a seperate table which will be grouped by Customer_ID and will contain an attribute that is a comma seperated list of the Loan_ID.

Customer_ID    Loan_ID_List
A              1,3,5
B              2
C              4,6

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM