1. Trang chủ
  2. » Công Nghệ Thông Tin

đề thi môn cơ sở dữ liệu nâng cao

2 707 3

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 2
Dung lượng 764,99 KB

Nội dung

;F ~ 1 '8) ~ , ~ ~ ' :, B~ cU'o'ngon thi mon Co' so'dfi'li~u nang cao I: Co' so'du'lieu qua" he , ~ Cae bll'O'cxay d~mg cO'So'dft Ii~u theo PhuO'ng . PhaP top-down. ;( 2) C~ch ?ay ~~rngcO'~~duoI,i~u~heop,hu~n~yhap bottom- tp &r~ K3) Cac van de trong VIyCquan tn cO'sO'du hyu. / ~ ! d4) C{tCphuO'ng phap Iuu tru cac file cO',so'duoli~u €::::: ~A- . 5) Trinh bay C{ICbuO'c xlr ly mQt truy van trong h~ quan tri cO'So'du li~u quan h~ 6) Cae phuO'ng phap t6i uu truy v~n ( t6i uu theo gia, bi~n d6i tuO'ng duO'ng, theo ngu nghTa) II. Co' so' dii' lieu ph:}" tan, ;>(1) Djnh nghia cO'So'dlt li~u phan tan, cac d~c tnmg clm cO'So'duoli~u phan tan so vO' . Sl)'(iU' Ii~u t~p trung. V2) Hay trinh bay c;;lCki~u phan do<;tndlt li~u /3) Trang su6t phan t;;lnvericac lmg d~ng'chi dQc J4) Trang sut)t phan tan vericac lrng d~ng C?Pnh?t ~/5) Cac,bu~c thi~t k€mQt cO'So'dlt li~u phan t{m 6) Thiet ke phan do<;tncO'So'dlt li~u 7) '1'hi6t k€ djnh vi cO'So'dlt Ii~u () Cae bi~n ci{)itmmg <.1uO'ngd{)ivO'id<;tisf) quan h~ 9) Cach chuy~n d6i cac truy v~n toan qlc thanh cac truy v~n do<;tn Bai t?p: I) XCide lu<}'cdb toan qlC, phan do<;tnva djnh vi sau day: Luqc c1C)toimqlC: STUDENT( Number, Name, Dept) Luqc d6 phan dO(,ln:STUDENTI = SL Dcpt="EE"STUDENT I ~ . r STU?ENT2.= ?L Dcpt="CS"STUDENT JLuqc do d!nh V!: SrUDt:NTI t(,llSIte 1,2 STUDENT2 t(,liSite 3,4 ( Gia thi€t la "EE" va "CS" Ia hai gia tri cc)th~ c6 cua Dept) a) Vi€t mQt ll'ng d~lIlgyeu diu ma s6 cua sinh vien (Number) tll' dau cuc1idua ra Ten (Name) va [(hoa (Dept) t(,licac muc trong su6t 1,2,va 3 '1l~ a 5\.~Q. ~ ~ ~ b) Vi~t IllQtlrng d~ll1gchuy~n IllQtsinh vien Cl)Illa s6 232 tu [(hoa "EE" sang I~h()a" . t~ti cac Illll'C ttong su6t 1,2,3. c) Vi~t IllQtlrng d~ll1gchuy€n IllQtsinh vien c6 Illa s6 va khoa duQ'ccho a di4t cu6i Si m6t khoa khac. ) d) XCi truc'n1ghqp lrng d~ng I duQ'CI~p l(,Iid6i vO'inhi~u gia trj clm ma s6 sinh vien. vi~t lrng d~lIlg: Truy c~p CO's()'duoIi~u d6i vO'im6i ma s6 sinh vien duQ'ccho (yd~u cu6i Truy C?P CGso' duoli~u sau khi da t?P hQ'p nhi~u input tll' c1<1ucut)i , Truy c~p cO's6 da li~u truac khi t~p hqp cac dff li~u tll' dfiu cu6i. 2) Hay vi~t mQt lmg d\)ng 6 muc trong su6t 2 tren CO's6 dff li~u vi d\) ( xem bai giang) chuy~n nhil cung c~p 157 tu "SF" to "LA". ( Chll Y xem ca thong tin SUPPL Y,Slr d\)ng ng~ ngCi'SQL) 4) Xet c(lc luq'c d6 phan do<;tnva toim C\)Csau day: LuQ'cd6 toim qlC: DOCTOR(DNUM, NAME, SAL, DEPT) PATIENT(PNUM,NAME,DEPT,TREA T,DNUM) CARE(PNUM, DRUG, QUAN) Cclc Im.Te<.1<\ phfm do<;tn: DOCTOR I = SLDEPT="SURGERY"DOCTOR DOCTO R2 = SLDEPT~"PEDIATRICS"DOCTOR DOCTOR3 = SLDEPT;t"SURGERY"AND DEPT;t "PEDiATRICS" DOCTOR PA TIENTI = SLDEPT="SURGERY"ANDTREAT="IN'~ENsrvE"PA TIENT PAT! ENT2 = SLDEPT="SURGERY"ANDTREAT;t"INTENSIVE"PA TIENT PA TIENT3 = SLDEPTc,t"SURGERY"PA TIENT CAREl = CARE SJ PNuM=PNuMPATIENTI CARE2 = CARE S.JPNUM = PNUMPA TIENT2 CARE3 =CARE S.JPNUM =PNUMP ATIENT3 Hay chuy6n cac truy vc1ntoim qle sau day thanh cac truy v~n do<;tnva Slfd\)ng cac tieu chu§n hI' I den 6 d~ dan gif1nch(mg. Su d\,mgd~i sf) quan h~ lwn ch~ khi dieu do ddn d~n v lo<;tib6 cae do~mkhong duQ'ctruy v~n yeu duo a) Li~t kc cae b~nh nhan Sll'd\)ng aspirin trong <.1i€utri PJNAMdPATIENT NJN SLDRUG="ASPIRIN"CARE) b) Lic;tkc dc bac SIda kc dan aspirin cho ciICbc;nh nhan dang bi di~l1tri tich CIJC PJNAMESLDRUG="ASPIRIN"ANDTREAT=" INTENSIVE,,(DOCTOR JNDNUM=DNUMPATIENT t'{JN CA~E) c) Lic;tkc s6 lUQ'ngtrung binh aspirin duQ'cke dan cho cae b~nh nhan dang duQ'ccham ~ tich qre e6 aspirin trong dan thu6e ClIahq GBAVG(QUAN)SLDRUG="ASPIRIN"(CARE NJN SLTREAT="INTENSIVE"PA TIENT) d) Li~tke luang trung binh cua cac bac SIke dan aspirin nh6m theo khoa GBDEPTNUM,AVG(SALjSLDRUG="ASPITIN,,(DOCTORIN DNUM=DNUMPATIENT N.JN CARE) , \. ' = . ;F ~ 1 '8) ~ , ~ ~ ' :, B~ cU'o'ngon thi mon Co' so'dfi'li~u nang cao I: Co' so'du'lieu qua" he , ~ Cae bll'O'cxay. d~ng'chi dQc J4) Trang sut)t phan tan vericac lrng d~ng C?Pnh?t ~/5) Cac,bu~c thi~ t k€mQt cO'So'dlt li~u phan t{m 6) Thiet ke phan do<;tncO'So'dlt li~u 7) '1'hi6t k€. Dcpt="CS"STUDENT JLuqc do d!nh V!: SrUDt:NTI t(,llSIte 1,2 STUDENT2 t(,liSite 3,4 ( Gia thi t la "EE" va "CS" Ia hai gia tri cc)th~ c6 cua Dept) a) Vi€t mQt ll'ng

Ngày đăng: 06/07/2014, 00:56

TỪ KHÓA LIÊN QUAN

w