2つのテーブル、transactionsテーブルとtransactions_itemsテーブルがあります。
トランザクション:
ID Customer Amt
1 Bill 500
2 Helen 100
transaction_items:
ID Code Price
1 R2 100
1 R3 200
1 R5 100
2 R5 100
私はそれらをそのようにグループ化したい:
ID Customer Code Price Amt
1 Bill R2 100 500
R3 200
R5 100
2 Helen R5 100 100
これは可能ですか?