LÖSNINGSFÖRSLAG till DBTEK-tentan 13 januari 1999 (TDDB38) ---------------------------------------------------------- Det här är FÖRSLAG på lösningar. Det kan finnas andra svar som också är riktiga. Dessutom kan en del av de här svaren vara utförligare än vad som behövs för full poäng på tentan. Uppgift 1-4: Inga lösningar finns. 5. Similarities between E-R and Extended E-R: - Both models based on entities, relationships, attributes, and cardinality constraints. Differences between E-R and Extended E-R: - E-E-R has inheritance (specialization) Similarities between OO and E-E-R: - Both have entities (classes), attributes, and inheritance. Differences between OO and E-R-R: - OO has methods - OO does normally not have relationships 6. QBE = Query By Example It is the most well known graphical relational query language Used in e.g. MS Access. Queries are expressed as examples in table templates EMP BOSS EMP_2 +------+ +------+ +------+ | SSN | +--| SSN | +-| SSN | | NAME | | | SECR |-+ | NAME | | SAL | | +------+ | SAL | | BOSS |-+ | BOSS | +------+ +------+ ----------------------------------------------------- Table: EMP EMP EMP_2 Field: NAME SAL SAL Sort: descending Show: x x Criteria: