私が望む結果」
price1 | price2
1. 10000 | 2. -100
3. 20000 | 4. -200
選択されるクエリ、
select total_price from cloud_payment where user_id='snoopy99' and demandnum= '201307-charge0000040C'
select unpaid_price from gcloud.cloud_service_basic where user_id='snoopy99' and month=7
select total_price from gcloud.cloud_payment where user_id='snoopy99' and demandnum= '201308-charge0000040C'
select unpaid_price from gcloud.cloud_service_basic where user_id='snoopy99' and month=8
1,3を最初の列に、 2,4を 2 列目にします。
何か良いアイデアはありますか?