I have two tables with a 0-to-many relationship. Contract (ContractID, ....) and CustRelationship (ContractID, CustID, CustPercent). CustRelationship has multiple rows that point back at Contract. Is it possible to get all the CustID's into a single row for each Contract?
Example:
ContractID | CustID | CustPercent |
---|
1234 | 12 | 50.00 |
1234 | 54 | 25.00 |
1234 | 74 | 25.00 |
... | ... | ... |
Output |
---|
1234 | 12 | 54 | 74 |
... | ... | ... | ... |
Thanks.