I have a table with account numbers and products. the table looks like this:
ACCOUNT_NUMBER, Product
1234, 'Personal Loan'
1234, 'Saving Account'
1234, 'Auto Loan'
4321, 'Checking Account'
4321, 'Mortgage'
I would like to have a query to give the result in this format:
ACCOUNT_NUMBER, PRODUCTS
1234,'Personal Loan,Savinig Account, Auto Loan'
4321, 'Checking Account,Mortgage'
how would I achieve that? I tried XML PATH, but the performance was very bad and it throws error (server out of disk spacee)