vf四
- 格式:doc
- 大小:62.50 KB
- 文档页数:8
~~~C现有两个自由表{<student.dbf>}和{<score1.dbf>},先将两文件下载到你的考试文件夹,然后按下面要求完成程序设计:1. 建立一个数据库studata,并将上面两个自由表添加到数据库中;以学号(xuehao)为主关键字建立student和score1两表之间的关联,student为父表。
2. 设计一个表单,以studata中的两个表作为表单的数据环境,在表单中添加一个命令按钮command1和一个文本框text1。
command1的标题为“2004年最低总分”。
3. 单击command1按钮将统计出2004级的所有人的最低总分,并将他们的学号、姓名(xingming)和总分分三行显示在文本框text1中。
年级字段名为nianji。
~346343 许天宝296select student.xuehao as xh,xingming,sum(chengji) as cj;from student,score1;where student.xuehao=score1.xuehao and nianji=2004;group by student.xuehao order by cjthisform.text1.value=xh+chr(13)+xingming+chr(13)+alltrim(str(cj))~~~C现有两个自由表{<student.dbf>}和{<score1.dbf>},按下面要求完成程序设计:1. 建立一个数据库studata,并将上面两个自由表添加到数据库中;以学号(xuehao)为主关键字建立student和score1两表之间的关联,student为父表。
2. 设计一个表单,以studata中的两个表作为表单的数据环境,在表单中添加一个命令按钮command1和一个编辑框edit1,command1的标题为“含4和5平均分”。
3. 单击command1按钮求出学号中同时含有4和5的所有学生中的平均分最低的姓名和平均分,并将它们显示在edit1中。
成绩字段名为chengji。
平均分是指每个学生所选各门课程的平均分。
~569084 杨中国68select student.xuehao as xh, xingming,avg(chengji) as cj;from student,score1 where student.xuehao=score1.xuehao and "4"$ student.xuehao and "5" $ student.xuehao;group by student.xuehao;order by cj into cursor tempthisform.edit1.value=xh+chr(13)+xingming+chr(13)+alltrim(str(cj))~~~C现有两个自由表{<score3.dbf>}和{<score4.dbf>},先将两文件下载到你的考试文件夹,然后按下面要求完成程序设计:1. 建立一个数据库scoredata,并将上面两个自由表添加到数据库中;以学号(xuehao)为主关键字建立两表之间的关联,score3为父表。
2. 设计一个表单,以scoredata作为表单的数据环境,在表单中添加一个命令按钮command1和一个标签label1。
command1的标题为“及格人的最低助学金”。
3. 单击command1按钮将统计四门成绩均不小于60的人的最低助学金(zhuxuejin),并将它显示在label1中。
四门课程成绩字段名分别为cj1、cj2、cj3和cj4。
~100select zhuxuejin from score3,score4 ;order by zhuxuejin;where score3.xuehao=score4.xuehao and cj1>=60 and cj2>=60 and cj3>=60 and cj4>=60 into cursor tempbel1.caption=str(zhuxuejin)~~~C现有两个自由表{<student.dbf>}和{<score1.dbf>},按下面要求完成程序设计:1. 建立一个数据库studata,并将上面两个自由表添加到数据库中;以学号(xuehao)为主关键字建立student和score1两表之间的关联,student为父表。
2. 设计一个表单,以studata中的两个表作为表单的数据环境,在表单中添加一个命令按钮command1和一个编辑框edit1,command1的标题为“不含4最高分”。
3. 单击command1按钮求出学号中不含有4的所有学生中总分最高的姓名(xingming)、学号和总分,并将它们分三行显示在edit1中。
成绩字段名为chengji。
~656566 罗珊482select xingming,student.xuehao as xh, sum(chengji) as cj from student,score1;where student.xuehao=score1.xuehao and !("4"$ student.xuehao);group by student.xuehao ;order by cj desc into cursor tempthisform.edit1.value=xh+chr(13)+xingming+chr(13)+str(cj)~~~C现有两个自由表{<student.dbf>}和{<score1.dbf>},先将两文件下载到你的考试文件夹,然后按下面要求完成程序设计:1. 建立一个数据库studata,并将上面两个自由表添加到数据库中;以学号(xuehao)为主关键字建立student和score1两表之间的关联,student为父表。
2. 设计一个表单,以studata中的两个表作为表单的数据环境,在表单中添加一个命令按钮command1和一个列表框list1。
command1的标题为“2002年最低总分”。
3. 单击command1按钮将统计出2002级的所有人的最低总分,并将他们的学号、姓名(xingming)和总分分三行显示在列表框list1中。
年级字段名为nianji。
~768965 马三立382select student.xuehao as xh,xingming as xm,sum(chengji) as cj ;from student,score1;where student.xuehao=score1.xuehao and nianji=2002;group by student.xuehao;order by cj;into cursor tempthisform.list1.additem(xh)thisform.list1.additem(xm)thisform.list1.additem(str(cj))~~~C现有两个自由表{<student.dbf>}和{<score1.dbf>},先将两文件下载到你的考试文件夹,然后按下面要求完成程序设计:1. 建立一个数据库studata,并将上面两个自由表添加到数据库中;以学号(xuehao)为主关键字建立student和score1两表之间的关联,student为父表。
2. 设计一个表单,以studata中的两个表作为表单的数据环境,在表单中添加一个命令按钮command1和三个标签。
command1的标题为“230以下最高总分”。
3. 单击command1按钮将统计出助学金小于230的所有人的最高总分,并将他们的学号、总分和助学金(zhuxuejin)分别显示在三个标签中。
成绩字段名为chengji。
select student.xuehao,sum(chengji) as cj,zhuxuejin;from student,score1;where student.xuehao=score1.xuehao and zhuxuejin<230;group by student.xuehao;order by cj desc;into cursor tempbel1.caption=xuehaobel2.caption=str(cj)bel3.caption=str(zhuxuejin)~656566 130 482~~~C现有两个自由表{<score3.dbf>}和{<score4.dbf>},先将两文件下载到你的考试文件夹,然后按下面要求完成程序设计:1. 建立一个数据库scoredata,并将上面两个自由表添加到数据库中;以学号(xuehao)为主关键字建立两表之间的关联,score3为父表。
2. 设计一个表单,以scoredata作为表单的数据环境,在表单中添加一个命令按钮command1和一个编辑框edit1。
command1的标题为“至少一门及格人的最高助学金”。
3. 单击command1按钮将统计四门成绩至少有一门不小于60的人的最高助学金(zhuxuejin),并将它显示在edit1中。
四门课程成绩字段名分别为cj1、cj2、cj3和cj4。
~996select zhuxuejin from score3,score4;where score3.xuehao=score4.xuehao and (cj1>=60 or cj2>=60 or cj3>=60 or cj3>=60);order by zhuxuejin desc into cursor tempthisform.edit1.value=str(zhuxuejin)~~~C现有两个自由表{<score3.dbf>}和{<score4.dbf>},先将两文件下载到你的考试文件夹,然后按下面要求完成程序设计:1. 建立一个数据库scoredata,并将上面两个自由表添加到数据库中;以学号(xuehao)为主关键字建立两表之间的关联,score3为父表。
2. 设计一个表单,以scoredata作为表单的数据环境,在表单中添加一个命令按钮command1和一个文本框text1。
command1的标题为“及格女生平均助学金”。
3. 单击command1按钮将统计女生(xingbie为假)中四门成绩均不小于60的人数的助学金(zhuxuejin)平均值,并将它显示在text1中。