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