D
Dinky
Unregistered / Unconfirmed
GUEST, unregistred user!
有一数据表(PlanForm)
linename id customercode model deductnumber
---------------------------------------------------- --------------------
A 6402 CJ RV0902NA-20F-B10K 8350
A 6403 WXN RV1212NB-10FI-A10K 4000
A 6404 WXN RV1212NB-CC-15FI-B10K 4000
B 6405 F005 RV1610GPH-20KQD-B50K 11000
B 6406 HWE RV1610GPH×2-20KQ-B50K 320
B 6407 HWE RV1610GPH×3-20KQ-B50K 140
B 6408 F003 RV1610GPH×3-15KQD-B50K 500
C 6409 HM RV1212G-20F-A20K 2500
C 6410 ALR RV1615G-25KQ-B50K 2000
C 6411 ALR RV1615N-25KQ-B20K 1000
C 6442 S007 RV1212G-15F-B50K 7000
D 6425 F005 RV1610GPH-20KQD-B50K 14000
D 6426 L007 RV1610GPH-15F-B10K 97
D 6427 L007 RV1610GPH-25F-B10K 1600
我想得到这种效果
linename id model customercode summ
------------------------------------------------ ----------------------------------------------
A 6404 RV1212NB-CC-15FI-B10K WXN 4000
A 6403 RV1212NB-10FI-A10K WXN 4000
A 6402 RV0902NA-20F-B10K CJ 8350
小计 NULL NULL NULL 16350
B 6408 RV1610GPH×3-15KQD-B50K F003 500
B 6407 RV1610GPH×3-20KQ-B50K HWE 140
B 6406 RV1610GPH×2-20KQ-B50K HWE 320
B 6405 RV1610GPH-20KQD-B50K F005 11000
小计 NULL NULL NULL 11960
C 6442 RV1212G-15F-B50K S007 7000
C 6411 RV1615N-25KQ-B20K ALR 1000
C 6410 RV1615G-25KQ-B50K ALR 2000
C 6409 RV1212G-20F-A20K HM 2500
小计 NULL NULL NULL 12500
D 6427 RV1610GPH-25F-B10K L007 1600
D 6426 RV1610GPH-15F-B10K L007 97
D 6425 RV1610GPH-20KQD-B50K F005 14000
小计 NULL NULL NULL 15697
合计 NULL NULL NULL 174435
linename id customercode model deductnumber
---------------------------------------------------- --------------------
A 6402 CJ RV0902NA-20F-B10K 8350
A 6403 WXN RV1212NB-10FI-A10K 4000
A 6404 WXN RV1212NB-CC-15FI-B10K 4000
B 6405 F005 RV1610GPH-20KQD-B50K 11000
B 6406 HWE RV1610GPH×2-20KQ-B50K 320
B 6407 HWE RV1610GPH×3-20KQ-B50K 140
B 6408 F003 RV1610GPH×3-15KQD-B50K 500
C 6409 HM RV1212G-20F-A20K 2500
C 6410 ALR RV1615G-25KQ-B50K 2000
C 6411 ALR RV1615N-25KQ-B20K 1000
C 6442 S007 RV1212G-15F-B50K 7000
D 6425 F005 RV1610GPH-20KQD-B50K 14000
D 6426 L007 RV1610GPH-15F-B10K 97
D 6427 L007 RV1610GPH-25F-B10K 1600
我想得到这种效果
linename id model customercode summ
------------------------------------------------ ----------------------------------------------
A 6404 RV1212NB-CC-15FI-B10K WXN 4000
A 6403 RV1212NB-10FI-A10K WXN 4000
A 6402 RV0902NA-20F-B10K CJ 8350
小计 NULL NULL NULL 16350
B 6408 RV1610GPH×3-15KQD-B50K F003 500
B 6407 RV1610GPH×3-20KQ-B50K HWE 140
B 6406 RV1610GPH×2-20KQ-B50K HWE 320
B 6405 RV1610GPH-20KQD-B50K F005 11000
小计 NULL NULL NULL 11960
C 6442 RV1212G-15F-B50K S007 7000
C 6411 RV1615N-25KQ-B20K ALR 1000
C 6410 RV1615G-25KQ-B50K ALR 2000
C 6409 RV1212G-20F-A20K HM 2500
小计 NULL NULL NULL 12500
D 6427 RV1610GPH-25F-B10K L007 1600
D 6426 RV1610GPH-15F-B10K L007 97
D 6425 RV1610GPH-20KQD-B50K F005 14000
小计 NULL NULL NULL 15697
合计 NULL NULL NULL 174435