The result i want,'
price1 | price2
1. 10000 | 2. -100
3. 20000 | 4. -200
the queries that will be selected,
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=7select 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
I want 1,3 to be in the first column 2,4 to be in the second column.
Any good idea?