Informazioni sul documento
- Università
- Politecnico di Milano
- Corso di laurea
- Computer Engineering
- Materia
- Data Bases 2
- Classificazione
- Esame · Esame completo
- Contenuto
- Testo d’esame
- Formato originale
- Testo
- Testo ricercabile
Esame completo di Data Bases 2 per il corso di Computer Engineering presso Politecnico di Milano. Materiale proveniente dall’archivio storico Studwiz e classificato per la consultazione online.
Esame completo di Data Bases 2 per il corso di Computer Engineering presso Politecnico di Milano. Materiale proveniente dall’archivio storico Studwiz e classificato per la consultazione online.
Qualità dell’importazione: il testo è stato estratto direttamente dal documento originale.
Passaggi rappresentativi riconosciuti nelle diverse parti del materiale. Il testo completo resta presente nella pagina per la ricerca, mentre l’anteprima compatta rende più semplice la lettura.
DATA BASES 2 – JANUARY 25TH, 2018 – TIME: 2H 15M PROF. DANIELE M. BRAGA, PROF. STEFANO PARABOSCHI A. Active Databases (9 p.) TREENODE (NodeId, FatherId, NodeValue, MinChildrenValue, MinDescValue, MaxChildrenValue, MaxDescValue) The table describes nodes of a tree, where each node stores a single value; FatherId is null for the root of the tree. Each node of the tree also describes the minimum and maximum values among all the direct children of the node and the minimum and maximum values among all the descendants of the node; for leaves these values are null. Write a set of triggers that keep the tree content consistent after an insertion of leav es into the tree. Discuss the termination of the triggers. Discuss how triggers could keep the structure consistent after a deletion of a leaf from the tree. B. Concurrency Control (5 p.) Classify th e following schedule w.r.t. all the known serializability classes , giving terse but exhaustive and precise justifications. r1(A) r2(B) w3(C) w2(B) r2(C) r1(B) r3(C) r2(A) r4(B) w5(C) w4(B) C. XML (10 p.) <!ELEMENT booklist ( book+ )> <!ELEMENT book ( title, author+, section+ )> <!ELEMENT section ( title, ( paragraph | figure | section )* )> <!ATTLIST section id ID #IMPLIED difficulty CDATA #IMPLIED> <!ELEMENT figure ( title, image )> <!ATTLIST figure width CDATA #REQUIRED height CDATA #REQUIRED > <!ELEMENT image EMPTY> <!ATTLIST image source CDATA #REQUIRED > The DTD above (source: W3C) describes books with nested sections. Unspecified elements only contain PCData. Extract in XQuery: (3 p.) The most used image in the booklist (publishers notoriously tend to reuse the same images in book figures, if possible). (3 p.) For each author, the number of figures overall published in his books, and their average “resolution” (expressed in…
Prima pagina del documento.