三、
1. 單擊“文件\新建”命令項。
2. 在“新建”對話框中選擇“菜單”單選鈕,再按“新建文件”按鈕。
3. 在“新建菜單”對話框中選擇“菜單”按鈕,在菜單設計器中的“菜單名稱”中輸入“考試”,然后“查詢”菜單的“結果”中選擇“子菜單”,單擊“創(chuàng)建”按鈕,在“菜單設計器”中,輸入兩個子菜單項“計算”和“返回”。
4. 在“計算”子菜單的“結果”選擇“過程”并輸入命令下列語句
select xuesheng.學號,姓名,數(shù)學,英語,信息技術 from xuesheng;
join chengji on xuesheng.學號=chengji.學號;
order by xuesheng.學號 desc into table table3
alter table table3 add 等級 c(4)
update table3 set 等級="優(yōu)" where 數(shù)學>=60 and 英語>=60 and 信息技術>=60 and (數(shù)學+英語+信息技術)/3>=90
update table3 set 等級="良" where 數(shù)學>=60 and 英語>=60 and 信息技術>=60 and (數(shù)學+英語+信息技術)/3>=80 and (數(shù)學+英語+信息技術)/3<90
update table3 set 等級="中" where 數(shù)學>=60 and 英語>=60 and 信息技術>=60 and (數(shù)學+英語+信息技術)/3>=70 and (數(shù)學+英語+信息技術)/3<80
update table3 set 等級="及格" where 數(shù)學>=60 and 英語>=60 and 信息技術>=60 and (數(shù)學+英語+信息技術)/3>=60 and (數(shù)學+英語+信息技術)/3<70
update table3 set 等級="差" where not(數(shù)學>=60 and 英語>=60 and 信息技術>=60)
5. 在“返回”子菜單的“結果”選擇“過程”并輸入命令下列語句
set sysmenu nosave
set sysmenu to default
6. 單擊工具欄上“保存”按鈕,在彈出“保存”對話框中輸入“mymenu”即可。
7. 在“菜單設計器”窗口下,單擊“菜單”菜單欄,選擇“生成”菜單項,生成“mymenu.mpr”文件。
8. 在“菜單設計器”窗口下,單擊“顯示”菜單欄,選擇“常規(guī)選項”菜單項,在“常規(guī)選項”對話框中,單擊“追加”單選鈕,最后再單擊“確定”按鈕即可。
相關推薦:北京 | 天津 | 上海 | 江蘇 | 山東 |
安徽 | 浙江 | 江西 | 福建 | 深圳 |
廣東 | 河北 | 湖南 | 廣西 | 河南 |
海南 | 湖北 | 四川 | 重慶 | 云南 |
貴州 | 西藏 | 新疆 | 陜西 | 山西 |
寧夏 | 甘肅 | 青海 | 遼寧 | 吉林 |
黑龍江 | 內(nèi)蒙古 |