2006 교육대학원 데이터베이스 중간고사 II 2006-05-02 Professor: Sanghyun Park 1. 2. (Overall, 40 points) Describe each one of the following terminologies or concepts. ① Entity-Relationship data model ② Three-tier architecture of database applications ③ Natural join ④ Embedded SQL ⑤ Transaction ⑥ Trigger ⑦ Slotted page structure ⑧ Hash file organization (Integrity and security, 20 points) Write an assertion for the bank database, shown below, to ensure that the assets value for the “Perryridge” branch is equal to the sum of all the amounts lent by the “Perryridge” branch. 3. (Storage and File Structures, 20 points) Consider a relational database with two relations: course(course-name, room, instructor) enrollment(course-name, student-name, grade) Define instances of these relations for three courses, each of which enrolls five students. Give a file structure of these relations that uses clustering. 4. (Indexing and hashing, 20 points) ① What is the difference between a primary index and a secondary index? ② What are the advantages of B-tree indexes over B+-tree indexes? ------------------------------- END -------------------------------