中級軟件設計師問答集^考試卷模擬考試題_0_第1頁
中級軟件設計師問答集^考試卷模擬考試題_0_第2頁
中級軟件設計師問答集^考試卷模擬考試題_0_第3頁
中級軟件設計師問答集^考試卷模擬考試題_0_第4頁
免費預覽已結束,剩余1頁可下載查看

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、姓名:_ 班級:_ 學號:_-密-封 -線- 標簽:標題考試時間:120分鐘 考試總分:100分題號一二三四五總分分數遵守考場紀律,維護知識尊嚴,杜絕違紀行為,確??荚嚱Y果公正。1、【說明】設有下列關于圖書借閱系統(tǒng)的er圖。圖中矩形表示實體,圓表示屬性,雙圓表示關鍵字屬性,菱形表示實體間的聯系。假定已通過下列sql語言建立了基本表:create table readers(rao char(6) primary key,rname char(20) not null,raddress char(200),rphone char(15);create table books(brio char(

2、6) primary key,rname char(50) not null);create table administrators(ano char(6) primary key,aname char(20) not null);create table borrows(rno char(6) not null,bno char(15) not null,ano char(6) not null,bdate date,rdate date,primary key(rno,bno,ano),foregin key(rno) reference readers(rno),foregin key

3、(bno) reference book(bno)foregin key(ano) reference administrators(ano);create table readers(rao char(6) primary key,rname char(20) not null,raddress char(200),rphone char(15);create table books(brio char(6) primary key,rname char(50) not null);create table administrators(ano char(6) primary key,ana

4、me char(20) not null);create table borrows(rno char(6) not null,bno char(15) not null,ano char(6) not null,bdate date,rdate date,primary key(rno,bno,ano),foregin key(rno) reference readers(rno),foregin key(bno) reference book(bno)foregin key(ano) reference administrators(ano);為了答題的方便,圖中的實體和屬性同時給出了中英

5、文兩種名字,回答問題時只需寫出英文名即可。【系統(tǒng)e-r圖】1. 【問題1】填寫下列sql程序中的(1)(6),使它們分別完成相應的功能。程序1:查沒有借閱過編號為111111圖書的所有讀者名單。select rno,rname,address,phonefrom readerswhere rno(1)(select(2)from borrowwhere bno=llllll);程序2:統(tǒng)計在2005年1月1日借書的讀者人數。select(3)from borrowwhere(4);程序3:查借書證號為123456的讀者所借過的所有圖書。select bno,bnamefrom bookswhe

6、re(5)(select *from borrowwhere(6)and rno=123456; ( )2、【說明】設有下列關于圖書借閱系統(tǒng)的er圖。圖中矩形表示實體,圓表示屬性,雙圓表示關鍵字屬性,菱形表示實體間的聯系。假定已通過下列sql語言建立了基本表:create table readers(rao char(6) primary key,rname char(20) not null,raddress char(200),rphone char(15);create table books(brio char(6) primary key,rname char(50) not nul

7、l);create table administrators(ano char(6) primary key,aname char(20) not null);create table borrows(rno char(6) not null,bno char(15) not null,ano char(6) not null,bdate date,rdate date,primary key(rno,bno,ano),foregin key(rno) reference readers(rno),foregin key(bno) reference book(bno)foregin key(

8、ano) reference administrators(ano);create table readers(rao char(6) primary key,rname char(20) not null,raddress char(200),rphone char(15);create table books(brio char(6) primary key,rname char(50) not null);create table administrators(ano char(6) primary key,aname char(20) not null);create table bo

9、rrows(rno char(6) not null,bno char(15) not null,ano char(6) not null,bdate date,rdate date,primary key(rno,bno,ano),foregin key(rno) reference readers(rno),foregin key(bno) reference book(bno)foregin key(ano) reference administrators(ano);為了答題的方便,圖中的實體和屬性同時給出了中英文兩種名字,回答問題時只需寫出英文名即可。【系統(tǒng)e-r圖】1. 【問題1】填寫下列sql程序中的(1)(6),使它們分別完成相應的功能。程序1:查沒有借閱過編號為111111圖書的所有讀者名單。select rno,rname,address,phonefrom readerswhere rno(1)(select(2)from borrowwhere bno=llllll);程序2:統(tǒng)計在2005年1月1日借書的讀者人數。s

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論