考试首页 | 考试用书 | 培训课程 | 模拟考场 | 考试论坛  
全国  |             |          |          |          |          |         
  当前位置:计算机等级 > 二级考试 > Visual FoxPro > VF模拟试题 > 文章内容
  

全国计算机等级考试二级VF试题及答案(10)

中华IT学院   【 】  [ 2016年5月27日 ]
1.(共40分)本大题不给参考答案。评分标准如下:
4) 正确建立2个表的数据结构(表结构设计正确)20分
5) 数据正确15分
6) 永久关联正确5分
2.
1)Select top 1 xs.营销员,yx.姓名,职务;
  from yx inner join xs on xs.销售员编号=yx.营销员编号;
  order by 数量 desc
2)
select yx.姓名,产品编号,数量*单价 as 销售金额,销售月份;
     from yx inner join xs on xs.营销员编号=yx.营销员编号;
     where xs.营销员编号=any(select yx.营销员编号 from yx where 职务='主管')
3)
select 数量*单价 as 销售金额,销售月份;
    form xs;
    group by 销售月份
3.
界面设计(10)
主要属性、事件代码:
text1.valid(15分)
n=val(thisform.text1.value)
if n<0 or n>12
   wait windows'月份错误!!!'
   return .f.
endif
do case
   case n>=3 and n<=5
      thisform.label2.caption='春'
   case n>=6 and n<=8
      thisform.label2.caption='夏'
   case n>=9 and n<=11
      thisform.label2.caption='秋'
   case n=12 or n=1 or n=2
      thisform.label2.caption='冬'
endcase
form.dblclick(5分)
thisform.release
分享到:
本文纠错】【告诉好友】【打印此文】【返回顶部
将考试网添加到收藏夹 | 每次上网自动访问考试网 | 复制本页地址,传给QQ/MSN上的好友 | 申请链接 | 意见留言 TOP
关于本站  网站声明  广告服务  联系方式  站内导航  考试论坛
Copyright © 2007-2013 中华考试网(Examw.com) All Rights Reserved