我有 4 张桌子:
 #table 1 columns - areacode,section_number,maint_charge
 #table 2 columns - section_number,discount,fee,total_Maint_charge
 #table 3 columns - areacode, statename
 #table 4 columns - section_number , customer
映射如下:
 #table1.areacode = #table3.areacode
 #table1.section_number = #table2.section_number
我想得到这样的东西:
 state,section_number,maint_charge,maint_charge/total_maint_charge,
 fee*(maint_charge/total_maint_charge) 
谢谢