綜合應用(1小題,計30分)
考生文件夾下的gnht.dbf是一個合同管理表文件,其中部分字段的含義是:
HTH(合同號)、DHDW(訂貨單位)、GHDW(供貨單位)、JHSL(訂貨數(shù)量)。
編寫程序progzh.prg分別統(tǒng)計訂貨單位數(shù)、供貨單位數(shù)、訂貨總數(shù),并將結(jié)果填寫到j(luò)ieguo.dbf(在考生目錄下已經(jīng)存在)表文件中。
說明:以上命令文件必須執(zhí)行,并產(chǎn)生所要求的結(jié)果。
解題思路:
在文件progzh.prg存放內(nèi)容如下:
close all
select count(distinct dhdw) from gnht into array a
select count(distinct ghdw) from gnht into array b
select sum(jhsl) from gnht into array c
use jieguo
replace num with a(1)
skip
replace num with b(1)
skip
replace num with c(1)
![]() | ![]() .. 定價:¥45 優(yōu)惠價:¥42 更多書籍 |
![]() | ![]() .. 定價:¥225 優(yōu)惠價:¥213 更多書籍 |