全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第一套 答案 二 2 1 SELECT 供应商号 工程号 数量 FROM 零件 供应 WHERE 供应 零件号 零件 零件号 AND 颜色 红 ORDER BY 数量 DESC INTO TABLE SUPPLY TEMP 2 2 rightClick事件代码 do menu quick mpr with this 三 查询 的Click事件代码 thisform grid1 recordSource select 零件名 颜色 重量 from 零件 供应 where 零件 零件号 供应 零件号 and 工程 号 J4 order by 零件名 into table pp 第二套 答案 二 2 1 select 书名 作者 价格 from book a loans b borrows c where a 图书登记号 b 图书登记号 and b 借书证 号 c 借书证号 and c 姓名 田亮 order by 价格 desc into table book temp 三 统计 的Click事件代码 select count from book where ma cox 出版社into array a form book text1 value a 第三套 答案 二 2 1 SELECT 姓名 2003 YEAR 出生日期 AS 年龄 FROM student INTO TABLE new table1 2 2 退出的命令为 set sysmenu to default 三 查询的Click事件代码 k alltrim thisform text1 value use score1 locate for 学号 k if not eof thisform grid1 recordsource select 课程名 成绩 from course a score1 b where a 课程号 b 课程号 and 学号 k into cursor temp else messagebox 学号不存在 请重新输入学号 endif 第四套 答案 一 1 1退出的命令为 set sysmenu to default 1 4 select from score1 order by 学号 成绩 desc into table mew order 二 简单应用 1 select distinct 学号 from score1 into table temp select count as 学生人数 from temp into table new table 三 综合应用 查询的Click事件代码 select 课程名 max 成绩 as 最高分 from course a score1 b where a 课程号 b 课程号 group by a 课程号 order by 课 程名 into table new table3 第五套 答案 一 1 3 INSERT INTO score1 学号 课程号 成绩 VALUE 993503433 0001 99 三 平均 过程代码 select 课程名 avg 成绩 as 平均成绩 from score1 a course b where a 课程号 b 课程号 group by 课程名 order by 课程名 into table new table32 第六套 答案 二 2 select 作者姓名 所在城市 from authors a books b where a 作者编号 b 作者编号 group by b 作者编号 having count 3 order by 作者姓名 into table new view4 三 1 select from books where 书名 like 计算机 into table books bak 2 update books bak set 价格 价格 0 95 3 select top 1 出版单位 avg 价格 as 均价 from books bak group by 出版单位 having 均价 25 order by 均价 into table new table4 第七套 答案 一 1 select from stock sl into table stock bk 2 insert into stock bk value 600028 4 36 4 60 5500 3 update stock bk set 现价 8 88 where 股票代码 600007 4 delete from stock bk where 股票代码 600000 二 第一行改为 select sum 现价 买入价 持有数量 第二行改为 in 第三行改为 where 银行 股票简称 第八套 答案 一 1 4 update 学生 set 出生日期 1983 05 01 where 姓名 王三风 二 2 1 SELECT 姓名 FROM 学生 WHERE 学号 IN SELECT 学号 FROM 选课 WHERE 成绩 70 GROUP BY 学号 HAVING COUNT 3 ORDER BY 姓名 INTO TABLE RESULTS 2 2 第1处改为 ALTER TABLE 学生 ADD 平均成绩 N 6 2 第2处改为 DO WHILE NOT EOF 第3处改为 REPLACE 平均成绩 WITH cj 1 第九套 答案 二 2 1 1 select 外币名称 持有数量 from rate exchange a currency sl b where a 外币代码 b 外币代码 and 姓名 林诗因 order by 持有数量 into table rate temp 三 查询的Click事件代码 k alltrim thisform text1 value thisform grid1 recordsource select 外币名称 现钞买入价 持有数量 as 人民币数量 from rate exchange a currency sl b where a 外币代码 b 外币代码 and 姓名 k order by 人民币数量 desc into table dbfa 第十套 答案 二 2 1 第1处应改为 locate for 姓名 林诗因 第2处应改为 DO WHILE NOT EOF 第3处应改为 summ summ a 1 持有数量 2 2 退出的命令为 set sysmenu to default 三 统计的Click事件代码 do case case thisform myoption value 1 select 姓名 持有数量 from currency sl where 外币代码 select 外币代码 from rate exchange where 外币名 称 日元 into table rate ry case thisform myoption value 2 select 姓名 持有数量 from currency sl where 外币代码 select 外币代码 from rate exchange where 外币名 称 美元 into table rate my case thisform myoption value 3 select 姓名 持有数量 from currency sl where 外币代码 select 外币代码 from rate exchange where 外币名 称 欧元 into table rate oy endcase 第十一套 答案 二 2 1 update 教师 set 新工资 原工资 1 2 where 职称 教授 update 教师 set 新工资 原工资 where 职称 教授 insert into 教师 value 林红 讲师 10000 10200 三 查询的Click事件代码 thisform grid1 recordsource select 姓名 课程名称 成绩 from 学生 a 选课 b 课程 c where a 学号 b 学号 and b 课程 号 c 课程号 and 系 6 into cursor temp 第十二套 答案 二 1 select a 项目号 项目名 c 零件号 零件名称 from 项目信息 a 使用零件 b 零件信息 c where a 项目号 b 项目号 and b 零件号 c 零件号 order by a 项目号 desc c 零件号 into table item temp 三 综合应用 表单form item的load事件代码 public x 3 x 1 s1 x 2 s2 x 3 s3 统计的Click事件代码 select sum 单价 数量 from 零件信息 a 使用零件 b where a 零件号 b 零件号 and 项目号 alltrim bo1 value into array xm thisform text1 value xm 1 第十三套 答案 一 1 3 alter table rate exchange rename column 买出价 to 现钞卖出价 二 2 2 select 姓名 sum 基准价 持有数量 as 人民币价值 from rate exchange a currency sl b where a 外币代码 b 外币代码 group by 姓名 order by 人民币价值 desc into table results 三 查询的Click事件代码 k thisform text1 value thisform grid1 recordsource select 外币名称 持有数量 from currency sl a rate exchange b where a 外币代码 b 外币 代码 and 姓名 k order by 持有数量 into table SELECT 课程编号 FROM score WHERE 成绩 60 TO FILE new 三 保存的Click事件代码 thisform grid1 recordsource SELECT Student 学号 Student 姓名 Student 院系 Course 课程名称 Score 成绩 FROM student score course where Score 课程编号 Course 课程编号 and Student 学号 Score 学号 ORDER BY Student 学号 INTO TABLE results 第十九套 答案 一 1 3 alter table student add unique 学号 tag 学号 二 2 2 第一处改为 store 0 to x s1 s2 s3 第二处改为 x val thisform text1 value 第三处改为 if mod x 3 0 三 确定 的Click事件代码 select 姓名 课程名称 考试成绩 from student join course join score on course 课程编号 score 课程编号 on student 学号 score 学号 where and 民族 汉族 into array tmp1 select avg 数学 avg 英语 from xuesheng chengji where xuesheng 学号 chengji 学号 and 民族 汉族 into array tmp2 select 0 use table3 zap append blank replace 民族 with 汉 数学平均分 with tmp1 1 英语平均分 with tmp1 2 append blank replace 民族 with 其他 数学平均分 with tmp2 1 英语平均分 with tmp2 2 close all 返回 过程代码 set sysmenu nosave set sysmenu to default 第二十一套 答案 三 计算 过程代码 select avg 数学 avg 英语 avg 信息技术 from chengji into array tmp select xuesheng 学号 姓名 from xuesheng chengji where xuesheng 学号 chengji 学号 and 数学 tmp 1 and 英语 tmp 2 and 信息技术 tmp 3 order by xuesheng 学号 desc into table table2 返回 过程代码 set sysmenu nosave set sysmenu to default 第二十二套 答案 三 计算 过程代码 select xuesheng 学号 姓名 数学 英语 信息技术 from xuesheng chengji where xuesheng 学号 chengji 学号 order by xuesheng 学号 desc into table table3 alter table table3 add 等级 C 4 update table3 set 等级 优 where 数学 60 and 英语 60 and 信息技术 60 and 数学 英语 信息技术 3 90 update table3 set 等级 良 where 数学 60 and 英语 60 and 信息技术 60 and 数学 英语 信息技术 3 80 update table3 set 等级 中 where 数学 60 and 英语 60 and 信息技术 60 and 数学 英语 信息技术 3 70 update table3 set 等级 及格 where 数学 60 and 英语 60 and 信息技术 60 and 数学 英语 信息技术 3 60 update table3 set 等级 差 where not 数学 60 and 英语 60 and 信息技术 60 返回 过程代码 set sysmenu nosave set sysmenu to default 第二十三套 答案 clear close all select 0 use table3 zap copy to ttt select 0 use ttt select 0 use xuesheng index on 学号 tag 学号 select 0 use chengji set relation to 学号 into xuesheng go top do while not eof if 数学 60 select ttt append blank replace 学号 with xuesheng 学号 姓名 with xuesheng 姓名 replace 课程名 with 数学 分数 with chengji 数学 select chengji endif if 英语 60 select ttt append blank replace 学号 with xuesheng 学号 姓名 with xuesheng 姓名 replace 课程名 with 英语 分数 with chengji 英语 select chengji endif if 信息技术 0 1 4 update 金牌榜 set 奖牌总数 金牌数 银牌数 铜牌数 三 1 RowSource属性中SQL语句 select 国家名称 from 国家 into cursor ls 2 生成表 的Click代码 x thisform list1 value select 运动员名称 项目名称 名次 from 获奖牌情况 国家 where 获奖牌情况 国家代码 国家 国家代码 and 国家名 称 x order by 名次 into table group by 国家名称 order by 奖牌总数 desc 国家名称 into table 假奖牌榜 2 生成表 Click事件代码 do four 3 浏览报表 Click事件代码 report form sport report preview 第二十六套 答案 一 1 打开 的Click事件代码 mand2 enabled t 3 alter table 学院表 add 教师人数 I check 教师人数 0 4 update teacher set 工资 8000 where 姓名 Jack 二 1 第一处改为 do while not eof 第二处改为 into array a 第三处改为 skip 三 2 RowSource数据源SQL语句 select 系名 from 学院表 into cursor xx 3 生成表 的Click事件代码 ss thisform list1 value select 职工号 姓名 工资 from 教师表 学院表 where 教师表 系号 学院表 系号 and 系名 ss order by 职工号 into table 第5行改为 SELECT 入住日期 第7行改为 WHERE 客户 客户号 入住 客户号 and 姓名 姚小敏 第8行改为 INTO TABLE TABC 三 查询 的Click事件代码 x alltrim thisform text1 value select 客户 客户号 身份证 姓名 工作单位 入住 客房号 类型名 价格 退房日期 from 客户 入住 客房 房价 where 客户 客户号 入住 客户号 and 入住 客房号 客房 客房号 and 客房 类型号 房价 类型号 and 退房日期 ctod x order by 价格 desc into table tabd 第二十九套 答案 一 3 create table 分组情况表 组号 C 2 组名 C 10 4 insert into 分组情况表 value 01 通俗唱法 二 1 第1处 DO WHILE NOT EOF 第2处 SELECT COUNT FROM 歌手表 WHERE LEFT 歌手表 歌手编号 2 zuhao INTO ARRAY A 第3处 REPLACE 歌手人数 WITH A 1 三 3 计算 的Click事件代码 tt thisform list1 value select from 评分表 where left 歌手编号 2 tt order by 歌手编号 desc 分数 into table two 第三十套 答案 一 4 alter table 评委表 alter 评委编号 set check left 评委编号 2 11 二 1 command1事件代码 thisform quit 2 select 歌手姓名 max 分数 as 最高分 min 分数 as 最低分 avg 分数 as 平均分 from 歌手表 评分表 where 歌 手表 歌手编号 评分表 歌手编号 group by 歌手表 歌手姓名 order by 平均分 desc into table result 三 2 生成表 的Click事件代码 if thisform optiongroup1 value 1 select from result order by 最高分 最低分 平均分 into table six a else select from result order by 最高分 desc 最低分 desc 平均分 desc into table six d endif 第三十一套 答案 一 4 统计 的Click事件代码 select from 歌手表 where 歌手出生地 bo1 value into table birthplace 三 1 select 歌手姓名 avg 分数 as 得分 from 歌手表 评分表 where 歌手表 歌手编号 评分表 歌手编号 and left 歌手表 歌手编号 2 01 group by 歌手表 歌手编号 order by 得分 desc 歌手姓名 desc into table final 第三十二套 答案 一 2 use employee set order to xm 三 2 查询统计 的Click事件代码 set talk off Thisform Grid1 RecordSource select 订单号 金额 from employee join order on Employee 职员号 Order 职员号 where employee 姓名 alltrim thisform text1 value order by 金额 into cursor lsb select lsb go top mi 金额 go bottom ma 金额 average 金额 to av select tablethree append blank replace 姓名 with alltrim thisform text1 value 最高金额 with ma 最低金额 with mi 平均金额 with av set talk on 第三十三套 答案 一 4 select 顾客号 菜单表 菜编号 菜名 单价 数量 from 菜单表 顾客点菜表 where 菜单表 菜编号 顾客点菜表 菜编号 and 单价 40 order by 菜单表 菜编号 desc into table taba 二 2 选项按钮组的Click事件代码 thisform list1 rowsource thisform optiongroup1 value 三 查询 的Click事件代码 tt alltrim thisform text1 value select 顾客序号 顾客姓名 单位 消费金额 from 结帐表 where 结帐日期 CTOD tt order by 消费金额 desc into table tabc 显示 的Click事件代码 thisform grid1 recordsourcetype 0 thisform grid1 recordsource tabc 第三十四套 答案 二 确认 的Click事件修改 第3行改为 Key2 ALLTRIM ThisForm Text2 Value 第4行改为 LOCATE ALL FOR USER Key1 第12行改为 ThisForm Release 三 确定的Click事件代码 k alltrim thisform text1 value select 年度 sum 销售额 as 销售额 sum 销售额 sum 工资额 as 利润 from dept a sell b where a 部门号 b 部门号 and 部门名 k group by 年度 order by 年度 into table where employee 组别 tmp1 组别 and 职务 组长 group by employee 组别 order by 合计 desc into table tabletwo 第三十七套 答案 二 1 确定 的Click事件代码修改 第一处改为 set century on 第二处改为 va thisform text1 value 第三处改为 thisform grid1 recordSource st 三 统计 过程代码 select year 签订日期 as 年份 month 签订日期 as 月份 sum 金额 as 合计 from orders where 签订日期 is not null group by 年份 月份 order by 年份 desc 月份 into table tabletwo 第三十八套 答案 二 1 显示 Click事件代码修改 第1处 FOR i 1 TO thisform List1 ListCount 第2处 s thisform List1 List i 第3处 s s thisform List1 List i 三 统计 过程代码 select customer 客户号 客户名 sum 金额 as 合计 from customer orders where customer 客户号 orders 客户号 group by customer 客户号 order by 合计 desc into table tabletwo 第三十九套 答案 一 2 update tabb set 日期 2005 10 01 3 select distinct from taba into table tabc 二 1 four程序代码 use taba scan x B 2 4 A C if x 0 xx1 B sqrt x 2 A xx2 B sqrt x 2 A replace x1 with xx1 x2 with xx2 else replace x1 with null x2 with null note with 无实数解 endif endscan 2 查询 事件代码 select from taba where note 无实数解 into table tabd 三 查询 的Click事件代码 tt ctod alltrim thisform text1 value thisform grid1 recordsource select 学号 姓名 年龄 性别 班级 注册日期 from 学生表 where 注册日期 tt order by 年龄 desc into table lsb USE TABE ZAP APPEND FROM lsb USE 第四十套 答案 二 1 three程序修改 第一处改为 FROM 部门表 join 销售表 join 商品代码表 第二处改为 ORDER by 1 5 desc 第三处改为 INTO TABLE TABA 2 select 部门表 部门号 部门名 sum 一季度利润 as 一季度利润 sum 二季度利润 as 二季度利润 sum 三季度利润 as 三季度利润 sum 四季度利润 as 四季度利润 from 部门表 销售表 where 部门表 部门号 销售表 部门号 and 年度 2005 group by 销售表 部门号 order by 部 门表 部门号 into table account 三 查询 的Click事件代码 t alltrim thisform text1 value tt alltrim thisform text2 value thisform grid1 recordsource select 销售表 商品号 商品名 一季度利润 二季度利润 三季度利润 四季度利润 from 销 售表 商品代码表 where 销售表 商品号 商品代码表 商品号 and 部门号 t and 年度 tt into table xs where order 订单号 orderitem 订单号 and orderitem 商品号 goods 商品号 and orderitem 商品号 alltrim thisform text1 value order by order 订单号 into table tablethree 第四十三套 答案 二 2 确定 的Click事件代码 tt alltrim thisform text1 value select order 订单号 签订日期 商品名 单价 数量 from order orderitem goods where order 订单号 orderitem 订单号 and orderitem 商品号 goods 商品号 and 客户名 tt order by order 订单号 商品 名 into table tabletwo 三 计算 过程代码 select 商品号 sum 数量 as 数量 from order orderitem where order 订单号 orderitem 订单号 and year 签订日期 2001 group by 商品号 into cursor lsb select 商品名 单价 数量 as 总金额 from goods left join lsb on goods 商品号 lsb 商品号 order by 商品名 into table tablethree update tablethree set 总金额 0 where 总金额 is null 第四十四套 答案 一 2 alter table 课程表 add unique 课程号 tag temp 二 1 程序修改 第一处改为 SELECT 课程号 FROM 课程表 WHERE 课程名 数据结构 INTO ARRAY a 第二处改为 use 教师表 第三处改为 SCAN for 课程号 a and 工资 4000 第四处改为 sum sum 1 三 表单的Load事件代码 public a 3 a 1 3000 a 2 4000 a 3 5000 生成 的Click事件代码 t bo1 value do case case thisform optiongroup1 value 1 select from 教师表 where 工资 val t order by 工资 desc 姓名 into table salary case thisform optiongroup1 value 2 select from 教师表 where 工资 1 4 alter table 教师表 alter 职工号 set check left 职工号 4 1102 二 1 第一处改为 CREATE TABLE 工资表 职工号 C 8 primary KEY 姓名 C 6 工资 N 10 2 第二处改为 INSERT INTO 工资表 VALUES 11020034 宣喧 4500 第三处改为 UPDATE 工资表 set 工资 工资 1 1 WHERE 工资 3000 第四处改为 DELETE FROM 工资表 where 姓名 Thomas 三 取前3名 过程代码 select top 3 系名 avg 工资 as 平均工资 from 教师表 学院表 where 教师表 系号 学院表 系号 group by 教师表 系 号 order by 平均工资 desc into table sa three 取前5名 过程代码 select top 5 系名 avg 工资 as 平均工资 from 教师表 学院表 where 教师表 系号 学院表 系号 group by 教师表 系 号 order by 平均工资 desc into table sa five 第四十六套 答案 一 1 use employee copy to emp bak structure4 report form employee preview 二 2 程序修改 第2行改为 from employee p join employee c 第3行改为 on p 组别 c 组别 where c 职务 组长 and c 姓名p 姓名 三 开始查询 的Click事件代码 s alltrim thisform textn value select 订单号 客户号 签订日期 金额 from order where 职员号 s order by 签订日期 into table t 第2处改为 FROM 教师表 学院表 WHERE 教师表 系号 学院表 系号 第3处改为 group BY 学院表 系号 第4处改为 order BY 3 DESC 2 D
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中医耳鼻喉科学试题及答案2
- 知识管理共享平台内容分类模板
- 市场调研报告模板多维度分析
- 投标租车合同
- 合同法 赠与合同
- 人才派遣合同
- 洛阳路租房合同
- 2025年仓储安全管理员实操安全管理法规试卷
- 2026秋季国家管网集团西部管道公司高校毕业生招聘考试参考试题(浓缩500题)带答案详解(完整版)
- 2025年房地产经纪人考试实操技能押题卷
- SYT5405-2019酸化用缓蚀剂性能试验方法及评价指标
- 与纳税服务对象有效沟通
- 英语三级词汇表
- 安全管理意识三阶段
- 博鳌BNCT硼中子治疗中心 环评报告
- TIMAAMM 003-2023 蒙医病证诊断疗效标准
- 《地理信息系统GIS》课件
- PEP人教版六年级英语上册《阅读理解与写作真题专项归类卷》(附答案)
- 化工总控工(技师高级技师)考试题库-导出版
- 泌尿外科利用PDCA循环降低持续膀胱冲洗患者膀胱痉挛的发生率品管圈QCC成果汇报
- 需求变更申请表模板
评论
0/150
提交评论