? 华林教育
8 套 简单应用 第 1 题
select 项目信息.项目号,项目信息.项目名,零件信息.零件号,零件信息.零件名称; from 零件信息,使用零件,项目信息 where 使用零件.项目号=项目信息.项目号 and 零 件信息.零件号=使用零件.零件号 ; and 使用零件.零件号 in(select 零件号 from 使用零件 where 项目号="s1" ) ; order by 使用零件.项目号 desc into table item_temp 13 套 简单应用 第 2 题 select ,,系部 from student where not in (select from score1) ; order by into table NEW_TABLE2 14 套 简单应用 第 1 题 select count(distinct ) as 学生人数 from score1 into table NEW_TABLE 14 套 简单应用 第 2 题 select 课程名,开课单位 from course where 课程号 not in (select
课程号 from score1); order by 课程名 into table NEW_TABLE2 51 套 简单应用 第 1 题 use customer append from customer1 select * from customer where 客户号 in (select 客户号 from order_list); order by 客户号 into table results 53 套 简单应用 第 1 题 select * from order_list where 总金额> (select avg(总金额) from order_list); order by 客户号 into table results 81 套 简单应用 第 2 题 先打开数据库 orders_manage 然后在命令窗口中输入如下命令,新建一个文本文件,把如 下命令复制到文本文件中,然后保存取名为 view_b.txt create view view_b as select * from employee where employee.职工号; not in (select 职工号 from orders) order by 仓库号 desc 92 套 简单应用 第 2 题 SELECT DISTINCT Customers.客户号, Customers., Customers.性别, Customers.联系 电话; FROM customers WHERE Customers.客户号 ; not in (SELECT DISTINCT Orders.客户号 FROM orders WHERE YEAR(Orders.签订日期) = 2008 AND MONTH(Orders.签订日期) = 2) ORDER BY Customers.客户号 DESC INTO TABLE tableone
编程题:
64 套 简单应用 第 1 题 three.prg clear all select 1 use rate select 2 use 外汇汇率
培训地址:九江本部对面中国银行旁 咨询电话: 胡老师
? 华林教育
do while .not.eof() a=币种 1 b=币种 2 select 外币代码 from 外汇代码 where 外币名称=a into array aa select 外币代码 from 外汇代码 where 外币名称=b into array bb select rate append blank replace 币种 1 代码 with aa(1) replace 币种 2 代码 with bb(1) replace 买入价 with 外汇汇率.买入价 replace 卖出价 with 外汇汇率.卖出价 select 外汇汇率 skip enddo 38 套 简单应用 第 1 题 four.prg use taba do while not eof() if (b*b-4*a*c)>=0 replace x1 with (-b+sqrt(b*b-4*a*c))/(2*a) replace x2 with (-b-sqrt(b*b-4*a*c))/(2*a) else replace note with "无实数解" endif skip enddo
特殊题:
19 套 简单应用 第 1 题 four.prg create view salary as select 系号,avg(工资) as 平均工资; from 教师表 group by 系号 order by 平均工资 desc 81 套 简单应用 第 1 题 select * from orders order by
职工号,金额 into table xy select * from xy group by 职工号 order by 金额,订购单号 into table results cancel 属性 取消键 (esc 键) enabled 属性 有效的、可用的属性 visible 属性 可见属性(隐藏性) pass
wordchar 属性 形式密码 (qq 密码 *) inputmask 属性 控制输入的数据(例如:只能输入 3 个数字 就改为 999) rowsourcetype 属性 数据源类型 列表框和组合框的数据源类型 rowsource 属性 数据源 列表框和组合框的数据源 multiselect 属性 多重选择(只有
列表框有) style 属性 下拉列表或下拉组合框(0 下拉组合框, 2 下拉列表框) buttoncount 属性 控件的数目 recordsourcetype 属性 表格的数据源类型
培训地址:九江本部对面中国银行旁 咨询电话: 胡老师
? 华林教育
recordsource 属性 表格的数据源 更新数据: update 表名 set 字段=字段值 where 条件 容易出错的是条件和修改的字段互 相混淆 插入数据: insert into 表名(字段名...) values(字段