二級強化模擬題答案 第三本

2022-11-19 07:03:04 字數 3848 閱讀 5257

第41套

二、2update 商品 set 銷售**=進貨***1.2268 where left(商品編碼,1)="3"

三、do case

case

sele 商品.* from 商品,分類 where 商品.分類編碼=分類.分類編碼 and 分類.分類編碼="1001"

case

sele 商品.* from 商品,分類 where 商品.分類編碼=分類.分類編碼 and 分類.分類編碼="2001"

case

sele 商品.* from 商品,分類 where 商品.分類編碼=分類.分類編碼 and 分類.分類編碼="3001"

case

sele 商品.* from 商品,分類 where 商品.分類編碼=分類.分類編碼 and 分類.分類編碼="4001"

endcase

第42套

二、1. sele 姓名,年齡,** from customer where 性別="女" and left(**,1)="6" order by 年齡 into dbf temp_cus

2. creat view sb_view as sele customer.會員號,姓名,article.商品名,orderitem.

單價,orderitem.數量,orderitem.單價*orderitem.

數量 as 金額 from customer,orderitem,article where customer.會員號=orderitem.會員號 and orderitem.

商品號=article.商品號 order by customer.會員號三、

command1**為:sele * from customer where 性別="女"

command2**為:sele * from sb_view

command3**為:report form myrepore preview

command4**為:

第43套

一、二、

1.sele 姓名,出生日期 from employee order by 出生日期 top 5 into dbf emage

2. 三、

n1=n2=

do case

case

n3=n1+n2

case

n3=n1-n2

case

n3=n1*n2

case

n3=n1/n2

endcase

第44套

二.1二.2 sele 會員號,姓名,年齡 from customer where 年齡<=30 to file cut_

三、第45套

二.1、

二.2、

三、查詢**如下:

sele student.學號,姓名,**g(成績) 平均成績 ,count(*) 選課門數 from student,sc ;

where student.學號=sc.學號 group by student.學號 h**ing 平均成績》=75 and 選課門數》=4 ;

order by 平均成績 desc into dbf two

第46套

二.1二.2

三 查詢**如下:

sele student.學號,姓名,**g(成績) 平均成績,min(成績) 最低分 from student,sc;

where student.學號=sc.學號 group by student.學號 h**ing 最低分》=60 into dbf four

第47套

二.1二.2

三、clos all

sele 1

use cus

do while not eof()

sele sum(數量*單價) from cbc where cbc.會員號=cus.會員號 into array je

do case

case je>=15000

lx="金卡"

case je<15000 and je>=10000

lx="銀卡"

case je<10000 and je>=5000

lx="銅卡"

case je<5000

lx="普通"

endcase

sele cus

repl 會員型別 with lx

skip

enddo

第48套

二.1、

計時器中的**為:

if <

endif

二.creat view sview as sele 課程.課程編號,課程名,;

count(*) as 選課人數 from 課程,考試成績 where ;

課程.課程編號=考試成績.課程編號 group by 課程.課程編號

三、第49套

二.1、

二.2、

sql命令為:

sele employee.職工號,姓名, count(*) as 訂單數 from employee,orders where employee.職工號=orders.職工號 ;

group by orders.職工號 orde by 3 desc top 3 into dbf newcount

三、第50套

二.1、略

二.2、

三、 錄取的**如下:

clos all

sele 考生號,成績 from kscjb,dm where kscjb.考試科目=dm.考試科目 and 考試科目名="政治" into cursor zz

sele 考生號,成績 from kscjb,dm where kscjb.考試科目=dm.考試科目 and 考試科目名="外語" into cursor wy

sele 考生號,成績 from kscjb,dm where kscjb.考試科目=dm.考試科目 and 考試科目名="高等數學" into cursor gsh

sele 考生號,成績 from kscjb,dm where kscjb.考試科目=dm.考試科目 and 考試科目名="專業課" into cursor zyk

sele ksb.考生號,姓名,性別,單位,zz.成績政治成績,wy.成績外語成績,gsh.成績高數成績,zyk.成績專業課成績 ,;

(zz.成績+wy.成績+gsh.成績+zyk.成績) 總成績;

from ksb,zz,wy,gsh,zyk where ksb.考生號=zz.考生號 and zz.考生號=wy.考生號 and wy.考生號=gsh.考生號;

and gsh.考生號=zyk.考生號 ;

group by ksb.考生號 h**ing 總成績》=330;

order by 總成績 desc;

into dbf four

第51套

二.2update student set 年齡=year(date())-year(出生日期)

sele 政治面目,count(學號) as 學生人數,**g(年齡) 平均年齡 from student group by 政治面目 into dbf sqlresults

三、sele count(dist(dhdw)) from gnht into array jg1

sele count(dist(ghdw)) from gnht into array jg2

sele sum(jhsl) from gnht into array jg3

update jieguo set num=jg1(1) where name="訂貨單位數"

update jieguo set num=jg2(1) where name="供貨單位數"

update jieguo set num=jg3(1) where name="訂貨總數"

2019二級機電模擬題2答案

2014二級建造師機電工程管理與實務模擬題2 一 單項選擇題 1 參 b 金屬材料分為黑色金屬和有色金屬。黑色金屬主要是鐵和以鐵為基的合金 鋼 鑄鐵和鐵合金 2 參 c 測定待測點高程的方法有 儀高法 常用 高差法。本題的另一種出題方式 安置一次儀器,同時需要測出數個前視點的高程時,最適用的方法是 ...

二級考試技能模擬題

二級企業培訓師操作技能模擬試題 姓名考號得分 一 案例選擇題 每小題2分,共10分 請結合教材p254頁案例回答以下問題 1.從此案例中,可以總結出培訓專案開發的關鍵環節有 a 要掌握尋找特定崗位能力要求的關鍵要素 b 要掌握尋找特定崗位員工素質差距的方法 c 要學會抓住主要問題 d 培訓專案開發書...

vfp國家二級模擬題答案知識點分析

所在位置第5,33,50套題第1,2,3,5,33,50套題第19,22套題第19,21,22套題第套題 第1,2,3,4,5,7,23,27,32,34,37,40,47,48,49,50套題第7,22,34,38,53套題第26套題 第7,12,25,30,33,42,53套題 第1,7,8,1...