Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のテーブルがあるとしましょう(つまり、参照テーブル)。結果を「期待される表」として表示したいと考えています。どうすればこの結果を得ることができますか? どんな助けでも大歓迎です。Oracle 10g を使用しています。
期待される:
SELECT Collateral_Id, LISTAGG(Commitment_Id, ',') WITHIN GROUP (ORDER BY Commitment_Id) "Commitment_Id" FROM yourTable GROUP BY Collateral_Id