1、国家二级 VF 机试(操作题)-试卷 10 及答案解析(总分:6.00,做题时间:90 分钟)一、基本操作题(总题数:1,分数:2.00)1.在考生文件夹下,打开招生数据库 SDB,完成如下操作:(1)在 KSB 表中增加一个名为“备注“的字段、字段数据类型为“字符“、宽度为 30;(2)在考生成绩表 KSCJB 中给成绩字段设置有效性规则和默认值,成绩0AND 成绩0AND 成绩=0 AND 成绩考生号 if not found() then append blank replace 考生号 with kscjb-考生号 endif do case case kscjb-考试科目=“101“
2、 replace 政治成绩 with kscjb-成绩 case kscjb-考试科目=“102“ replace 外语成绩 with kscjb-成绩 case kscjb-考试科目=“103“ replace 高数成绩 with kscjb-成绩 case kscjb-考试科目=“104“ replace 专业课成绩 with kscjb-成绩 endcase select kscjb skip enddo close all update test set 总成绩=政治成绩+外语成绩+高数成绩+专业课成绩 SELECT Ksb.考生号, Ksb.姓名, Ksb.性别, Ksb.单位, Test.政治成绩,; Test.外语成绩, Test.高数成绩, Test.专业课成绩, Test.总成绩; FROM sdb!ksb INNER JOIN test ON Ksb.考生号 = Test.考生号; WHERE Test.总成绩 = 330; ORDER BY Test.总成绩 DESC; INTO TABLE four 步骤 5:在“表单设计器“中,双击退出命令按钮,在“Command2.Click“编辑窗口中输入“Thisform. Release“,接着关闭编辑窗口。)解析: