




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、精選學(xué)習(xí)資料 - - - 歡迎下載習(xí)題一 . 12 分用英文說(shuō)明1.dbms2.datadictionary3.transaction10 分二.單項(xiàng)挑選題1there may be instances where an attribute has a set of values for a specific entity. this type of attribute is said to be 【】a single valued attributebmultivalued attribute simple attributedcomposite attribute2 in a partic
2、ular bank、 a loan can belong to only one customer、 and a customer can have several loans、 then the relationship set fromcustomer to loan is【】a one to manyb many to manyc many to oned one to one3a 【】contains metadata that is、 data about data.a tableb viewc data dictionarydtrigger4the phrase“ greater
3、than at least one” is represe【nt】ed in sql by a >allb <allc <somed >some5 in general、 all aggregate functions except【】ignore null values in their input collection.a sumbavgc mindcount6 ifa schedule s can be transformed into a schedule sb y a series of swaps ofnon-conflicting精品學(xué)習(xí)資料精選學(xué)習(xí)資料
4、- - - 歡迎下載instructions、 we say that s and se【】 ar精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載a non-conflicting equivalentbconflict equivalent c non-conflicting serializabledconflict serializable7the fundamental operations in the relational algebra ar【e 】;a ,-,×,和 b ,-,和 c ,×, 和 d , 和 8 in sql、 =some is identic
5、al to in、 and【】is identical to not in ;a <>someb =allc<>alld =some9the result of true and null is【】;a nullbtruec falsednot null10 the function sum applied on the collection 1、1、3、4、4、11 returns the value【】.a 24b6c 4d111精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載三.10 分設(shè)有 course課程.teacher老師.student討論生 ,其中:cou
6、rse 有屬性 cno課程號(hào) .cname課程名 和 mark學(xué)分;teacher有屬性 tno老師編號(hào) .tname老師姓名 和 major專業(yè)屬性 ;student 有屬性 sno學(xué)號(hào).sname同學(xué)姓名 .age年齡. bno班級(jí)號(hào) .score總成果屬性;teacher與 student之間有指導(dǎo)論文的聯(lián)系, 用 supervise表示,每位老師可指導(dǎo)多名討論生, 每名討論生有且只能有一位指導(dǎo)老師;teacher與 course 之間有講授的聯(lián)系,用teach 表示,每位老師可以教授多門課程,每門課程可同時(shí)由多位老師開(kāi)設(shè);試畫(huà)出 e-r 圖;四.12 分題設(shè)與第三題相同,試依據(jù)你所畫(huà)的
7、e-r 圖,設(shè)計(jì)出關(guān)系數(shù)據(jù)庫(kù),并指出每個(gè)關(guān)系中的主鍵和外鍵;五.8 分題設(shè)與第三題相同,試用關(guān)系代數(shù)表達(dá):1檢索編號(hào)為 t01的老師的姓名2檢索班級(jí)號(hào)為 b01或者年齡大于 21 歲全部同學(xué)的姓名六.12 分 題設(shè)與第三題相同;使用sql 表達(dá):1建立表結(jié)構(gòu) course課程 .teacher老師.student討論生 (其中要求 age 大于零;定義必要的主鍵和外鍵) ;2將學(xué)號(hào)為 ” a01姓”名、為 ” zhang年”齡、為” 22的”同學(xué)信息加入到student 表中3檢索專業(yè)為 運(yùn)算機(jī) 的老師的姓名和編號(hào) 、 并按編號(hào)由大到小排列;4將學(xué)號(hào)以 a0開(kāi)1頭的同學(xué)信息刪除;5檢索比 b0
8、1班全部同學(xué)的總成果都高的同學(xué)的姓名、去掉重復(fù)的姓名;6檢索張山老師所教的同學(xué)的平均總成果假設(shè)不存在老師重名現(xiàn)象;七.12 分設(shè)有屬于 1nf 的關(guān)系模式 r=(a、 b、 c、 d、 e ),r 上的函數(shù)依靠集 f= bcad ,adeb, ec ;1. r 為否屬于 3nf?為什么?2. r 為否屬于 bcnf?為什么?八.12 分 設(shè)有屬于 1nf 的關(guān)系模式 r=( a、 b、 c、 d、 e ), r 上的函數(shù)依靠集f 包含如下函數(shù)依靠 f=abc、 da、 ec、 bcd、 ba1.求 x=bd 關(guān)于 f 的閉包 x+.2.求 f 的一個(gè)正就掩蓋 .3.求滿意 3nf 分解的關(guān)系模
9、式九.12 分設(shè)有如下調(diào)度 s;t1t 2t 32精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載readb writebreadbreadawritebwriteareadb writebreada writeareada writea1. 判別 s 為否為沖突可串行化調(diào)度.2. 假如為沖突可串行化調(diào)度,就給出與s 沖突等價(jià)的串行調(diào)度;習(xí)題答案八.12 分用英文說(shuō)明 每題 3 分3.dbms:adatabase management system consists of a collection ofinterrelated data and a collection of programs
10、to access those data.4.data dictionary: a data dictionary is a file that contains metadata、 that is data about data.5.transaction: the transaction is a unit of program execution that accesses and possibly updates various data items.九.10 分單項(xiàng)挑選題每題 1 分1【b】2【a 】3【c】 4【d】5【d】6【b】7【a 】8【c】9【a 】10【a 】十. 10
11、 分e-r 圖:3精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載teacherteachsupervisecourse精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載student精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載(1) 正確描述出 teache.r5 分course.teach.supervise.student五個(gè)實(shí)體集及聯(lián)系集及其相關(guān)屬性精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載(2) 描述出 teacher和 student 之間為 1 對(duì)多關(guān)系-1 分(3) 描述出 teacher和 course 之間為多對(duì)多關(guān)系-1 分(4) 矩形.菱形等符號(hào)表示正確-3 分十一.1
12、2 分coursecno、 cname、 mark 主鍵: cno2 分teacher tno、 tname、 major主鍵: tno2 分精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載student sno、 sname、 age、 bno、 tno、score主-4 分 其中主鍵和外鍵各占1 分鍵: sno 外鍵: tno精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載teachtno、 cno 主鍵: tno、 cno外鍵: tno 和 cno4 分 其中主鍵和外鍵各占1.5 分十二.8 分tnametno= t01teacher4 分snameage>21 orbno=b01st
13、udent-4 分十三.12 分1create table course cno char4、cname char10、 mark integer、primary keycno-1 分create table teacher tno char10、tname char4、major char8primary keytno 1 分create table student sno char10、sname char10、 age integer、4精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載tno char10、 bno char10、 score integer、primary keysno、
14、foreign key tno references teacher tno、 check age>0-1 分create table teach tno char10、cno char4、primary key tno、cno、foreign key tno references teacher tno、foreign key cno references course cno 1 分2insert into studentsno、sname、age values 'a01'、 'zhang'、 222 分3select tname、 tnofrom t
15、eacher精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載where major=計(jì)算機(jī) 精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載order by tno desc-1.5 分 order by 語(yǔ)句正確占 0.5 分4delete from studentwhere sno like a01%-1.5 分 like 語(yǔ)句表達(dá)正確占0.5 分5select distinct sname from studentwhere score>select maxscorefrom studentwhere bno= b01-1.5 分6 select avgscorefrom studen
16、twhere tno=select tnofrom teacherwhere tname= 張山-1.5 分十四.12 分bc、 ad、 be 都為候選碼, -4 分1全部屬性都為某個(gè)候選碼的屬性,明顯為3nf;-4 分2e>c 非平凡依靠,而 e 不為 r 的一個(gè)超碼, r 不屬于 bcnf -4 分十五.12 分1x +=abdc1.5 分2正就掩蓋: daecbcd-4.5 分 每個(gè)依靠 1.5 分5精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載3d、ae、cb、c、d b、e-6分 每個(gè)模式 1.5 分十六.12 分1. s 為沖突可串行化調(diào)度; -4 分2. 沖突等價(jià)的串行調(diào)度
17、為 <t2、 t3、 t1>-8 分十七.12 分 用英文說(shuō)明:7 . transaction8 . dbms9 . data model十八.20 分 挑選題:1. 一個(gè)關(guān)系中的主鍵() ;a. 不行能多于一個(gè)b. 不行以作為其他關(guān)系的外部鍵c. 可以取空值d. 不行以為屬性組合2. 在數(shù)據(jù)庫(kù)中,產(chǎn)生數(shù)據(jù)不一樣的根本緣由為();a. 數(shù)據(jù)儲(chǔ)備量太大b. 數(shù)據(jù)冗余c. 未對(duì)數(shù)據(jù)進(jìn)行完整性掌握d. 沒(méi)有嚴(yán)格愛(ài)護(hù)數(shù)據(jù)3. 事務(wù)在執(zhí)行時(shí),所遵循的“要么全部操作全部發(fā)生,要么由于出錯(cuò)而全不發(fā)生”這為事務(wù)的()性質(zhì).a. 隔離性b.長(zhǎng)久性c. 原子性d.一樣性4. ()為數(shù)據(jù)抽象的最低層次,
18、描述數(shù)據(jù)實(shí)際上為怎樣儲(chǔ)備的;a.物理層b.規(guī)律層c.視圖層d.子模式層對(duì)數(shù)據(jù)庫(kù)系統(tǒng)進(jìn)行集中掌握的人稱為()a.操作系統(tǒng)治理員b. 數(shù)據(jù)庫(kù)治理員c.數(shù)據(jù)庫(kù)操作員d. 程序員5. ;6. 中的一個(gè)實(shí)體至多同中的一個(gè)實(shí)體相聯(lián)系,而中的一個(gè)實(shí)體可以同中任意數(shù)目的實(shí)體相聯(lián)系,就和之間的映射基數(shù)為();a.一對(duì)多b.一對(duì)一c.多對(duì)一d.多對(duì)多a.數(shù)據(jù)定義語(yǔ)言b.視圖定義語(yǔ)言c.數(shù)據(jù)操縱語(yǔ)言d.動(dòng)態(tài) sql 語(yǔ)言事務(wù)不具有的性質(zhì)有();a.原子性b.可復(fù)原性c.隔離性d.長(zhǎng)久性7. ()供應(yīng)定義關(guān)系模式.刪除關(guān)系以及修改關(guān)系模式的命令;8.9. 運(yùn)算過(guò)程中不忽視null 值的集合函數(shù)包括() ;6精品學(xué)習(xí)資
19、料精選學(xué)習(xí)資料 - - - 歡迎下載a. avg b. max c. min d. count 10. 假設(shè)關(guān)系person 包含元組 john、 smith、 jeffrey、 mary、 valeria,關(guān)系 customer 包含元組 john、 jeffrey、 tom ;就 person 和 customer 的集合差運(yùn)算結(jié)果應(yīng)當(dāng)包含()個(gè)元組;a. 3b. 2c. 1d. 5三.8 分 請(qǐng)?jiān)O(shè)計(jì)一個(gè)體育競(jìng)賽技術(shù)統(tǒng)計(jì)數(shù)據(jù)庫(kù);數(shù)據(jù)庫(kù)對(duì)每個(gè)運(yùn)動(dòng)員儲(chǔ)存?zhèn)€人記錄,包括: 姓名.性別.年齡.身份證號(hào);對(duì)每項(xiàng)競(jìng)賽存有:競(jìng)賽編號(hào).競(jìng)賽時(shí)間.地點(diǎn).比分.參與競(jìng)賽的球隊(duì)名稱;仍應(yīng)記錄上場(chǎng)隊(duì)員在每場(chǎng)競(jìng)賽的
20、統(tǒng)計(jì)數(shù)據(jù),包括:進(jìn)球數(shù).助攻次數(shù);畫(huà)出相應(yīng)的e-r 圖,并加以必要的說(shuō)明;四. 8 分 依據(jù)下面的e-r 圖設(shè)計(jì)關(guān)系數(shù)據(jù)庫(kù),要求指出相應(yīng)的主鍵和外鍵;account-numberbalancebranch-nameaccountaccount-branchbranchbranch-cityassetsdepositorcustomer-name精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載customercustomer-city精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載五. 12 分 考慮下圖所示員工數(shù)據(jù)庫(kù);為下面每個(gè)查詢語(yǔ)句寫(xiě)出sql 表達(dá)式;employeeemployee-name
21、、 street、 cityworks employee-name、 company-name、 salary companycompany-name、 city . 找出不為first bank corporation工作的全部員工的名字 . 修改數(shù)據(jù)庫(kù),使得jones現(xiàn)在居住在newtown 市 找出各個(gè)公司員工的平均工資,并依據(jù)公司名稱排序(逆序);d 刪除 works 關(guān)系中的全部元組;六. 10 分 關(guān)于關(guān)系模式r=a、 b、 c、 d、 e的函數(shù)依靠集f 如下所示,a bc cd e b de a . 運(yùn)算正就掩蓋fc . 運(yùn)算閉包 ab +七.10 分設(shè)有屬于1nf 的關(guān)系模式r
22、=( a、 b、 c、 d、 e ),r 上的函數(shù)依靠集f= abc,cde,bd,ea ;下面為 r 的兩個(gè)分解7精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載( 1) r1= a、 b、 c 和 r2a、 d、 e ( 2) r1= a、 b、 c 和 r2 c、 d、 e 試判別 , 為否為無(wú)損連接分解,為什么?八.10 分 設(shè)有屬于1nf 的關(guān)系模式r=( a、 b、 c、 d、 e ),r 上的函數(shù)依靠集f= abc、 cde、 bd、 ad ;求滿意 3nf 分解的關(guān)系模式;九. 10 分 考慮如下所示的優(yōu)先圖,相應(yīng)的調(diào)度為沖突可串行化的嗎?假如為,請(qǐng)給出串行化調(diào)度次序;t1t2t
23、5t3t4t6參考答案十九.12 分 用英文說(shuō)明:10 .transaction:a transaction is a unit of program execution that accesses and possibly updates various data items.11.dbms : a database management system consists of a collection of interrelated data and a collection ofprograms to access that data.12 .data model : a collecti
24、on of conceptual tools for describing data、 data relationships、 data semantics、 and data constraints.二十.20 分 挑選題:a. b.c.a.b.c.a.b.d.a三.8 分 請(qǐng)?jiān)O(shè)計(jì)一個(gè)體育競(jìng)賽技術(shù)統(tǒng)計(jì)數(shù)據(jù)庫(kù);數(shù)據(jù)庫(kù)對(duì)每個(gè)運(yùn)動(dòng)員儲(chǔ)存?zhèn)€人記錄,包括: 姓名.性別.年齡.身份證號(hào);對(duì)每項(xiàng)競(jìng)賽存有:競(jìng)賽編號(hào).競(jìng)賽時(shí)間.地點(diǎn).比分.參與競(jìng)賽的球隊(duì)名稱;仍應(yīng)記錄上場(chǎng)隊(duì)員在每場(chǎng)競(jìng)賽的統(tǒng)計(jì)數(shù)據(jù),包括:進(jìn)球數(shù).助攻次數(shù);畫(huà)出相應(yīng)的e-r 圖,并加以必要的說(shuō)明;四. 8 分 依據(jù)下面的e-r 圖設(shè)計(jì)關(guān)系數(shù)據(jù)庫(kù),
25、要求指出相應(yīng)的主鍵和外鍵;8精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載account-numberbalancebranch-nameaccountaccount-branchbranchbranch-cityassetsdepositorcustomer-name精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載customercustomer-city精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載account account_number、 balance、 branch_nameprimary key account_number foreign key branch_namebran
26、ch branch_name、 branch_city、 assetsprimary key branch_namecustomer customer_name、 customer_cityprimary key customer_name depositor account_number、 customer_nameprimary key account_number、 customer_nameforeign key account_number foreign key customer_name五. 12 分 考慮下圖所示員工數(shù)據(jù)庫(kù);為下面每個(gè)查詢語(yǔ)句寫(xiě)出sql 表達(dá)式;employee
27、employee-name、 street、 cityworks employee-name、 company-name、 salary companycompany-name、 city . 找出不為first bank corporation工作的全部員工的名字select employee-name from workswhere company-name .=first bank corporation . 修改數(shù)據(jù)庫(kù),使得jones現(xiàn)在居住在newtown 市update employeeset city= newtown where employee-name= jones 找出各
28、個(gè)公司員工的平均工資,并依據(jù)公司名稱排序(逆序);select company-name、 avg salary from worksgroup by company-name order by company-name descd 刪除 works 關(guān)系中的全部元組;delete from works六. 10 分 關(guān)于關(guān)系模式r=a、 b、 c、 d、 e的函數(shù)依靠集f 如下所示,a bc cd e b de a9精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載 . 運(yùn)算正就掩蓋fc . 運(yùn)算閉包 ab +答: f c= abc, cde, bd, ea ab +=abcde七.10 分設(shè)有
29、屬于1nf 的關(guān)系模式r=( a、 b、 c、 d、 e ),r 上的函數(shù)依靠集f= abc,cde,bd,ea ;下面為 r 的兩個(gè)分解( 1) r1= a、 b、 c 和 r2a、 d、 e ( 2) r1= a、 b、 c 和 r2 c、 d、 e 試判別 , 為否為無(wú)損連接分解,為什么? 答: 為無(wú)損連接分解、 不為無(wú)損連接分解八.10 分 設(shè)有屬于1nf 的關(guān)系模式r=(a、 b、 c、 d、 e ),r 上的函數(shù)依靠集f= abc、 cde、 bd、 ad ;求滿意 3nf 分解的關(guān)系模式;答: r1=abc、 r2=cde、 r3=bd九. 10 分 考慮如下所示的優(yōu)先圖,相應(yīng)的
30、調(diào)度為沖突可串行化的嗎?假如為,請(qǐng)給出串行化調(diào)度次序;t1t2t5t3t4t6t1、t2、t6、t3、t4、t5習(xí)題 6二十一.12 分 用英文說(shuō)明:13 .view 14 .dbms15 .query language二十二.10 分 填空題(在以下各小題中的括號(hào)部分省略了數(shù)據(jù)庫(kù)系統(tǒng)的術(shù)語(yǔ),在答題紙上寫(xiě)好小題號(hào),并在其后用英文填寫(xiě)相應(yīng)的術(shù)語(yǔ)):1. the collection of information stored in the database at a particular moment is called an of the database.2. a is a language
31、 that enables users to access or manipulate data as organized by theappropriate data model.3. a person who has such central control over the system is called a .4. application programs are said to exhibit if they do not depend on the physical schema、10精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載and thus need not be rewr
32、itten if the physical schema changes.5. a is a collection of conceptual tools for describing data、 data relationships、 data semantics、 and consistency constraints.6. the overall design of the database is called the .7. an is a set of the same type that share the same properties、 or attributes.8. we
33、choose a minimal superkey for each entity set from among its superkeys; the minimal superkey is termed theentity set s.9. anyrelation that is not part of the logicalmodel、 but is made visible to a user as a virtualrelation、 is called a .10. sql allows the use of values to indicate absence of informa
34、tion about the value of an attribute.三. 8 分 請(qǐng)?jiān)O(shè)計(jì)一個(gè)圖書(shū)館數(shù)據(jù)庫(kù),此數(shù)據(jù)庫(kù)中對(duì)每個(gè)借閱者儲(chǔ)存讀者記錄,包括:讀者號(hào).姓名.地址.性別.年齡.單位;對(duì)每本書(shū)存有:書(shū)號(hào).書(shū)名.作者.出版社;同一書(shū)名的書(shū)有多本,以便被多個(gè)讀者借閱;對(duì)每本被借出的書(shū)應(yīng)記錄借出日期和應(yīng)仍日期;畫(huà)出相應(yīng)的e-r 圖,并加以必要的說(shuō)明;四. 8 分 依據(jù)下面的e-r 圖設(shè)計(jì)關(guān)系數(shù)據(jù)庫(kù),要求指出相應(yīng)的主鍵和外鍵;account-numberbalancebranch-nameaccountaccount-branchbranchbranch-cityassetsdepositor
35、customer-name精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載customercustomer-city精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載五. 12 分 考慮下圖所示員工數(shù)據(jù)庫(kù);為下面每個(gè)查詢語(yǔ)句寫(xiě)出sql 表達(dá)式;employeeemployee-name、 street、 cityworks employee-name、 company-name、 salary companycompany-name、 city . 找出全部為first bank corporation工作的員工的名字 . 修改數(shù)據(jù)庫(kù),使得jones現(xiàn)在居住在newtown 市 找出各個(gè)公司員工的平
36、均工資,并依據(jù)公司名稱排序(逆序);d 為 first bank corporation全部員工增加10%的薪水;六. 10 分設(shè)有關(guān)系模式r= (a、 b、 c、 d、 e), r 上的函數(shù)依靠集f = ab ,cde, ac ;給出r 的一個(gè)無(wú)損連接的bcnf 分解;七. 10 分 設(shè)有關(guān)系模式r= ( a、 b、 c、 d、 e ), r 上的函數(shù)依靠集f = abc, cde,bd, ea ;運(yùn)算ab + ?八. 10 分 設(shè)有屬于1nf 的關(guān)系模式r=( a、 b、 c、 d、 e ),r 上的函數(shù)依靠集f = abc、 cde、 ad ;求滿意 3nf 分解的關(guān)系模式;11精品學(xué)習(xí)
37、資料精選學(xué)習(xí)資料 - - - 歡迎下載九. 10 分 如下所示的調(diào)度為沖突可串行化的嗎?假如為,請(qǐng)給出串行化調(diào)度次序;t 1t 2readb writeb精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載reada writeareadbwritebreada writea精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載參考答案二十三.12 分 用英文說(shuō)明:16 .view views are virtual relations defined by a query language17 .dbmsa database management system consists of a collecti
38、on of interrelated data and a collection of programs to access that data.18 .query language a query language in which a user requests information from the database.二十四.10 分 填空題(在以下各小題中的括號(hào)部分省略了數(shù)據(jù)庫(kù)系統(tǒng)的術(shù)語(yǔ),在答題紙上寫(xiě)好小題號(hào),并在其后用英文填寫(xiě)相應(yīng)的術(shù)語(yǔ)):1. the collection of information stored in the database at a particular
39、moment is called an instance of the database.2. a dml is a language that enables users to access or manipulate data as organized by the appropriate data model.3. a person who has such central control over the system is called a dba .4. applicationprograms are said to exhibitphysicaldata independence
40、 if they do not depend on the physical schema、 and thus need not be rewritten if the physical schema changes.5. a datamodel is a collectionof conceptual tools for describing data、 data relationships、 data semantics、 andconsistency constraints.6. the overall design of the database is called the datab
41、ase schema .7. an entity is a set of the same type that share the same properties、 or attributes.8. we choose a minimal superkey for each entity set from among its superkeys; the minimal superkey is termed theentity set cansdidate key.9. any relation that is not part of the logical model、 but is mad
42、e visible to a user as a virtual relation、 is called aview .10. sql allows the use of null values to indicate absence of information about the value of an attribute.三. 8 分 請(qǐng)?jiān)O(shè)計(jì)一個(gè)圖書(shū)館數(shù)據(jù)庫(kù),此數(shù)據(jù)庫(kù)中對(duì)每個(gè)借閱者儲(chǔ)存讀者記錄,包括:讀者號(hào).姓名.地址.性別.年齡.單位;對(duì)每本書(shū)存有:書(shū)號(hào).書(shū)名.作者.出版社;對(duì)每本被借出的書(shū)應(yīng)記錄借出日期和應(yīng)仍日期;畫(huà)出相應(yīng)的e-r 圖,并加以必要的說(shuō)明;12精品學(xué)習(xí)資料精選學(xué)習(xí)資料
43、- - - 歡迎下載四. 8 分 依據(jù)下面的e-r 圖設(shè)計(jì)關(guān)系數(shù)據(jù)庫(kù),要求指出相應(yīng)的主鍵和外鍵;account-numberbalancebranch-nameaccountaccount-branchbranchbranch-cityassetsdepositorcustomer-name精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載customercustomer-city精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載account account_number、 balance、 branch_nameprimary key account_number foreign key bran
44、ch_namebranch branch_name、 branch_city、 assetsprimary key branch_name customer customer_name、 customer_cityprimary key customer_name depositor account_number、 customer_nameprimary key account_number、 customer_name foreign key account_numberforeign key customer_name五. 12 分 考慮下圖所示員工數(shù)據(jù)庫(kù);為下面每個(gè)查詢語(yǔ)句寫(xiě)出sql
45、表達(dá)式;employeeemployee-name、 street、 cityworks employee-name、 company-name、 salary companycompany-name、 city . 找出全部為first bank corporation工作的員工的名字select employee-name from workswhere company-name=first bank corporation . 修改數(shù)據(jù)庫(kù),使得jones現(xiàn)在居住在newtown 市update employeeset city= newtown where employee-name=
46、jones13精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載 找出各個(gè)公司員工的平均工資,并依據(jù)公司名稱排序(逆序);select company-name、 avg salary from worksgroup by company-nameorder by company-name descd 為 first bank corporation全部員工增加10%的薪水; update worksset salary=salary*1.1where company-name=first bank corporation六. 10 分 設(shè)有關(guān)系模式r= (a、 b、 c、 d、 e), r 上的
47、函數(shù)依靠集f = ab ,cde, ac ;給出 r 的一個(gè)無(wú)損連接的bcnf 分解;r1=ab r2=cde r3=ac r4=ad七. 10 分 設(shè)有關(guān)系模式r= ( a、 b、 c、 d、 e ), r 上的函數(shù)依靠集f = abc, cde,bd, ea ;運(yùn)算ab + ?ab + =abcde八. 10 分 設(shè)有屬于1nf 的關(guān)系模式r=( a、 b、 c、 d、 e ),r 上的函數(shù)依靠集f = abc、 cde、 ad ;求滿意 3nf 分解的關(guān)系模式;r1=abc r2=cde九. 10 分 如下所示的調(diào)度為沖突可串行化的嗎?假如為,請(qǐng)給出串行化調(diào)度次序;t 1t 2readb
48、 writeb精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載reada writeareadb writebreada writea精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載1.為2.t1、t2習(xí)題 1精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載二十五.12 分 用英文說(shuō)明:19 .query language14精品學(xué)習(xí)資料精選學(xué)習(xí)資料 - - - 歡迎下載20 .first normal form 1nf 21 .view二十六.10 分 填空題(在以下各小題中的括號(hào)部分省略了數(shù)據(jù)庫(kù)系統(tǒng)的術(shù)語(yǔ),在答題紙上寫(xiě)好小題號(hào),并在其后用英文填寫(xiě)相應(yīng)
49、的術(shù)語(yǔ)):1. an is an object that exists in the real world and is distinguishable from other objects.2. the overall design of the database is called the .3. we say that a schedule s is 、 if it is conflict equivalent to a serial schedule.4. a is an association among several entities.5. let r be a relation schema. a subset k of r is a of r if、 in any legal relation rr、 for all pairs t1 and t2 of tuples in r such that t 1t2、 then t1k 2tk.6. underlyingthe
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年西寧從業(yè)資格證貨運(yùn)考試試題
- 建筑設(shè)計(jì)咨詢合同
- 2025年拉薩道路運(yùn)輸從業(yè)資格證考試內(nèi)容是什么
- 2025年陽(yáng)泉年貨運(yùn)從業(yè)資格證考試答案
- 變壓器安裝承包合同
- 中小學(xué)老師聘用合同
- 安裝工程分包合同范本與安裝工程合作合同6篇
- 2025年雙鴨山貨運(yùn)從業(yè)資格證考試模擬考試題庫(kù)
- PVA膜產(chǎn)業(yè)分析報(bào)告
- 養(yǎng)殖用地變更合同范本
- 船舶電氣設(shè)備及系統(tǒng)船舶照明系統(tǒng)管理-課件
- 蘇教版六年級(jí)英語(yǔ)下冊(cè)單詞表(默寫(xiě)不用提)
- 單層廠房鋼結(jié)構(gòu)設(shè)計(jì)T83
- 5S點(diǎn)檢表1(日檢查表)
- 醫(yī)院感染管理組織架構(gòu)圖
- 帶你看認(rèn)養(yǎng)一頭牛品牌調(diào)研
- 雙鴨山玄武巖纖維及其制品生產(chǎn)基地項(xiàng)目(一期)環(huán)評(píng)報(bào)告表
- 冠心病病人的護(hù)理ppt(完整版)課件
- 砂石生產(chǎn)各工種安全操作規(guī)程
- (精心整理)林海雪原閱讀題及答案
- 云南藝術(shù)學(xué)院
評(píng)論
0/150
提交評(píng)論