國立東華大學試題 系所:資訊管理學系 科目:資料庫管理 第1頁/共6頁

Slides:



Advertisements
Similar presentations
Logical DB Design: ER to Relational Entity sets to tables. Employees ssn name lot CREATE TABLE Employees (ssn CHAR (11), name CHAR (20), lot INTEGER, PRIMARY.
Advertisements

Introduction to Database System Wei-Pang Yang, IM.NDHU, Final Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
Database Administration, Integrity and Performance.
SQL Lecture 10 Inst: Haya Sammaneh. Example Instance of Students Relation  Cardinality = 3, degree = 5, all rows distinct.
Chapter 4: Immediate SQL Complex Queries Complex Queries Views Views Modification of the Database Modification of the Database Joined Relations Joined.
中央大學。范錚強 1 從 ER 到 Logical Schema 國立中央大學 資訊管理系 范錚強 2004.
Databases Revision.
1 Translation of ER-diagram into Relational Schema Prof. Sin-Min Lee Department of Computer Science.
中央大學。范錚強 1 從 ER 到 Logical Schema 國立中央大學 資訊管理系 范錚強 2002.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Implementing an REA Model in a Relational Database
LOGICAL DATABASE DESIGN
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
Chapter 6: Integrity Objective Key Constraints (Chapter 2) Cardinality Constraints (Chapter 2) Domain Constraints Referential Integrity Assertions Triggers.
Chapter 6: Integrity and Security Thomas Nikl 19 October, 2004 CS157B.
Chapter 4: Advanced SQL. 4.2Unite International CollegeDatabase Management Systems Chapter 4: Advanced SQL SQL Data Types and Schemas Integrity Constraints.
For Project 1, Deliverable 4, you will add referential integrity (FOREIGN KEY) constraints to existing tables, as well as composing general assertions.
Chapters 17 & 18 Physical Database Design Methodology.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
-- Introduction to database principles Maoying Wu March 25, 2013 Chapter 4: Advanced SQL (1)
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
Q1: What is DBMS and explain its architecture. Q2: Explain Data Independence in detail. Q3: What is database user and explain the types of database user.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
RDBMSSection Relational DBMS DATABASE DEVELOPMENT And Franchise Colleges By MANSHA NAWAZ.
For Project 1, Deliverable 4, you will add referential integrity (FOREIGN KEY) constraints to existing tables, as well as composing general assertions.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Final Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
CS499 Project #3 XML mySQL Test Generation Members Erica Wade Kevin Hardison Sameer Patwa Yi Lu.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
國立東華大學 資訊管理學系 資料庫管理 試題 Wei-Pang Yang, IM.NDHU, /6/20 Final Test-1 Suppose we have a relationship set borrower between customer and loan as shown.
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
©Silberschatz, Korth and Sudarshan1 Structured Query Language (SQL) Data Definition Language Domains Integrity Constraints.
Index in Database Unit 12 Index in Database 大量資料存取方法之研究 Approaches to Access/Store Large Data 楊維邦 博士 國立東華大學 資訊管理系教授.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
COP-5725 Practice Exercises
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 4: Intermediate.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
April 20022/CS/3X1 Database Design Design method John Wordsworth Department of Computer Science The University of Reading Room.
ER Diagrams and Relational Model CS 174a (Winter 2015)
Introduction to Databases
國立臺北科技大學 課程:資料庫系統 Chapter 2 Database Environment.
Tables & Relationships
Chapter 5 Database Design
Chapter 6: Integrity (and Security)
Chapter 4 Logical Database Design and the Relational Model
Databases – Exam questions
國立臺北科技大學 課程:資料庫系統 Chapter 7 SQL Data Definition.
Payroll Management System
Translation of ER-diagram into Relational Schema
Generalization.
SQL: Constraints and Triggers
From ER to Relational Model
國立臺北科技大學 課程:資料庫系統 fall Chapter 18
The Relational Model Relational Data Model
Databases: An Introduction
Translation of ER-diagram into Relational Schema
אבטחת נתונים בסביבת SQL Data Security
Primary key Introduction Introduction: A primary key, also called a primary keyword, is a key in a relational database that is unique for each record.
資料庫管理作業(一).
國立臺北科技大學 課程:資料庫系統 2015 fall Chapter 14 Normalization.
Database Design: Relational Model
Question 1: Basic Concepts (40 %)
Example: Banking Database
Question 1: Basic Concepts (45 %)
Integrity 5/5/2019 See scm-intranet.
Unit 12 Index in Database 大量資料存取方法之研究 Approaches to Access/Store Large Data 楊維邦 博士 國立東華大學 資訊管理系教授.
MySQL安裝&操作教學.
Example: Banking Database
Review #1 Intro stuff What is a database, 4 parts, 3 users, etc.
Presentation transcript:

國立東華大學試題 系所:資訊管理學系 科目:資料庫管理 第1頁/共6頁 國立東華大學試題 系所:資訊管理學系 科目:資料庫管理 第1頁/共6頁 Question 1: [About B+ Tree] (20%) 50 82 96 97 99 91 93 94 89 94 83 85 89 71 78 82 60 62 70 51 52 58 58 70 35 40 50 15 18 32 6 8 12 12 32 index set (nondense) Sequence set (dense) - How index are used? 有哪三項? 試以上圖解釋之。 How to get record with key = 18, and how many disk I/O are needed to get it? If we want to print out all records, at least, how many disk I/O are needed? In general, what are the advantages and disadvantages of using “index”?

Question 2: E-R Model  Tables (20%) E.g. Consider weak entity payment that depends on entity loan Draw a relational table for entity loan What is the primary key for your table laon? Draw a relational table for weak entity payment What is the primary key for your table payment?.

Question 3: Entity Sets vs. Attributes (10%) Consider a Entity Set: employee with attributes (employee-id, employee-name, telephone-number) Case 1: telephone-number as an attributes Case 2: Create a entity set: telephone Discuss case 1 之優缺點 Discuss case 2 之優缺點

Question 4: Explain Terms (20%) Explain the following terms blob clob Logical database design Specialization vs. Generalization in E-R diagram UML Diagram Update Anomalies! grant <privilege list> on <relation name/view name> to <user list> EXEC SQL <embedded SQL statement > END-EXEC

Question 5: Referential Integrity (15%) 5. account create table account (account-number char(10), branch-name char(15), balance integer, primary key (account-number), foreign key (branch-name) references branch on delete set null on update cascade ) references 1. branch When we delete a tuple in branch, eg. Brighton Broklyn 7100000, what will happen in account? b) When we update the first tuple in branch, eg. Donghwa Broklyn 7100000, what will happen in account? c) When we delete the first tuple in account, what will happen in branch?

Question 6: About Your Final Term Project (15%) According to your final project as “Design and implement a useful database application system” What is the title of your project? Names of members in your team. Draw the E-R Diagram of your application system. (You can just give a similar diagram.) Draw a table to show one relation used in the system Check your answer in d) to see whether it is in the 1NF? Why? Please answer “why” by using the definition of the 1NF. Same as e) to see whether it is in the 2NF? Why? Same as e) to see whether it is in the 3NF? Why?