【正文】
gosp_grantdbaccess 39。,39。asselect 課程號(hào), count(*) as 人數(shù) from 選修 group by 課程號(hào) having 課程號(hào)=kch goexec pro_num_選修1 39。 end(3)use jxgldeclare mycursor4 scroll cursorfor select * from 學(xué)生open mycursor4 select cursor_rows, case cursor_rows when 1 then 39。 when 0 then 39。是水仙花數(shù)39。安徽39。男39。phone_rule39?!禨QL Server 2000實(shí)用教程》課后習(xí)題答案習(xí)題一一、選擇題 二、填空題 習(xí)題二一、填空題15BDBBB 610CAAAA 1115DBDBC 1620ABCAD 2125BAAAA二、選擇題1. 3 2. 備用碼 3. 外鍵 4. R1,R2 5. 第一范式 6. BCNF 7. 1,18. 全外連接 13. 1NF 2NF 15. 單一屬性 16. 參照 17. 子集 3NF 19. θ連接 20. 關(guān)系21. 數(shù)據(jù)依賴 22. C X S 23. π學(xué)號(hào)(X) S 24. 學(xué)號(hào) 系主任 決定因素三、計(jì)算題1.ABCg5da4hb6hc3e2.ABCa4hb6hb2h3.(1)R1={XYZ|R(XYZ)∧Y≤5∧Z=f)}ABCa2fg3f(2)R2={XYZ|R(XYZ)∨S(XYZ)∧Y≠6∧Z≠7)}ABCa2fd5hg3fb7fd5hb4fg8e(3)R3={YZVU|(?X)(S(XYZ)∧W(UV)∧Y≤6∧V=7)}BCED6E7e5h7e4f7e4.(1)主碼:(教師號(hào)、課程號(hào))(2)第一范式,因?yàn)榇嬖诓糠趾瘮?shù)依賴(3)分解方法為:教師表(教師號(hào),姓名,職稱)課程表(課程號(hào),課程名,學(xué)分,教科書(shū)名)教師授課表(教師號(hào),課程號(hào))習(xí)題三一、選擇題 二、填空題 三、實(shí)踐題習(xí)題四一、選擇題 二、填空題 2.*.ldf shrinkdatabase 三、實(shí)踐題1. create database lxon(name=lx_data,filename=39。,39。 and 出生日期=(select max(出生日期) from 學(xué)生where 性別=39。 pute count(籍貫)或select 學(xué)號(hào),姓名,籍貫 from 學(xué)生where 籍貫=39。 set n=n+1 endgo6.create function score_info(xh char(8))returns total_score table (學(xué)號(hào) char(8),姓名 char(6),性別 char(2),課程號(hào) char(2),課程名稱 varchar(20),成績(jī) numeric(5,1))asbegininsert total_scoreselect ,姓名,性別,課程名稱,from 學(xué)生,課程,選修where = and = and =xhreturn end go select * from score_info(39。沒(méi)有打開(kāi)游標(biāo)39。該游標(biāo)為動(dòng)態(tài)游標(biāo)39。0139。0639。stu_login239。stu_login1_u39。0801010139。0139。非動(dòng)態(tài)游標(biāo),包含總行數(shù)39。該游標(biāo)為動(dòng)態(tài)游標(biāo)39。)returns table as return(select ,姓名,性別,課程號(hào),班級(jí)號(hào) from 教師,授課where = and =gh)go select * from (default)go4.create function (num1 int,num2 i