I have two tables: Accounts and Property. The Accounts table has a field called "accountID". The Property table has fields called "accountID" and "propertyName".
I need to return a list of all the accountIDs and with all of its associated properties in a comma separated concatenated column... For example I have 3 account ID's: 101, 102, 103
accountID 101 has three properties: house, car, boat
accountID 102 has four properties: plane, yacht, motorcycle oyster
accountId 103 has one property: fish
I need the return to look like:
accountID properties
101 house, car, boat
102 plane, yacht, motorcycle, oyster
103 fish