3582295759

3582295759



Próbeźny test 3.

User ID: fskaspol    Attempt: 1/1    Out of: 2

Started: October 19, 2004 18:40    Finished: October 19, 2004 18:56    Time spent: 16 min. 26 sec.

Student finished 8 min. 34 sec. ahead of the 25 min. time limit.


Question 1


(1 point)


Vysvetlete pojem "referenćm integrita dat":


Student response:    Referenćm integrita zakazuje odkazovat se na neexistujfcf hodnoty .Odmftne każdy INSERT/UPDATE, ktery se pokusi vytvorit hodnotu cizfho klice v dcerinne tabulce bez toho, aby v rodićovske

tabulce dana hodnota existovala.

Score:    1/1


Question 2


(1 point)


Hame dane nasledujici schemata relaci:


Hotel(cHotelu, jmeno, adresa)

Pokoj(cHotelu, cPokoje, TypPokoje, Cena)

Host(cHosta, jmeno, adresa)

Rezervace(cHotelu, cPokoje, cHosta, odkdy, dokdy,)

Poznamka:

TypPokoje muże byt

jednolużkovy - S dvoulużkovy - D apartman - A

V    jazyku SQL definujte strukturu tabulek Hotel, a Pokoj.

Typy dat volte odpovidajici predpokladanym hodnotam dat.

V    maximalni mirę zabezpećte integritu dat

(primarni klić, referenćni integrita, vyżadane hodnoty, pripustne hodnoty)


Studentresponse:    CREATE table Hotel (cHotelu int(5) NOT NULL, jmeno char(25), adresa char (25),

PRIMARY KEY (cHotelu), ON DELETE CASCADE, ON UPDATE CASCADE)


CREATE table Pokoj (cHotelu int(5), cPokoje int(5) NOT NULL, typPokoje char(l) CHECK(typPokoje In (1S1,'D1,1 A')), cena float, PRIHARY KEY (cPokoje), F0REIGN KEY (cHotelu), ON DELETE CASCADE, ON UPDATE CASCADE)


CREATE table Host (cHosta int(5) NOT NULL, jmeno char(25), adresa char (25), PRIHARY KEY (cHosta), ON DELETE CASCADE, ON UPDATE CASCADE)


CREATE table Rezervace (cRezervace int(5) NOT NULL PRIHARY KEY, cHotelu int(5), cPokoje int (5), cHosta int(5), odkdy datę NOT NULL, dokdy datę NOT NULL,

PRIHARY KEY(cRezervace), F0REIGN KEY(cHotelu, cPokoje, cHosta))


Score:


1/1


Total score:


2 / 2 = 100.0%



Wyszukiwarka

Podobne podstrony:
View Results Próbeźny test c.2 User ID: fskaspol Started: October 5, 2004 10:45 Attempt: 1/1
EXIT TEST 1 10 cz 2 20    I like the.......of this song. A special effects B role C l
00071 ?e586b9e4c806e780db8de67c99d012 70 Hembree & Zimmer To test the DBAF, two time senes of f
00096 ?a491c7a3417a7d2c8090691313e406 6The OCAP: Predetermined Responses to Out-of-Control Conditio
00098 E01ccb576ed4cbe114d576671632ee5 The OCAP97 Start ETCH DEPTH OUT-OF-CONTROL ACTION PLAN No _
00371 ?b95f88afbfde7311cc63a5711edf05 375 Regret Indices and Capability Quantification distribution
00469 ?5193b0eebc921358b059bb4bde7465 475 An Algorithm and a Graphical Approach for Short Run Proce
img055 2 PRACTICAL TATTINGEDGING A I madę this little dress purely as an example for this book, out
lndividually Boxed! NOT USED, NOT PULLEO OUT OF OLD SETS Every Rad-Tel Tubę Is BRAND NEW Guaran
vii.    Death due to or arising out of directly or indirecdy connected with war or wa
readmylips Read My Lips A publ< figurę appeun on nationol TV and ralks his woy out of eve/ything!
IMGR11 EDITOR’S FOREWORD Gik leather hangings went out of fasluon ioon after 1700 and, as far as Nor
New Forms Taschen 189 new, sophisticated attitude towards Modernism coming out of SCI-Arc, the avant

więcej podobnych podstron