國立東華大學 資訊管理學系 資料庫管理 試題 Wei-Pang Yang, IM.NDHU, 2006 2006/6/20 Final Test-1 Suppose we have a relationship set borrower between customer and loan as shown.

Slides:



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

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.
Complex Integrity Constraints in SQL. Constraints over a Single Table Table Constraint: Create TABLE Sailors (sid INTEGER, sname CHAR(10), rating INTEGER,
Introduction to Database System Wei-Pang Yang, IM.NDHU, Final Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
Review Indra Budi Fakultas Ilmu Komputer UI 2 Database Introduction Database vs File Processing Main purpose of database Database Actors.
Review for Final Test Indra Budi
SQL Lecture 10 Inst: Haya Sammaneh. Example Instance of Students Relation  Cardinality = 3, degree = 5, all rows distinct.
中央大學。范錚強 1 從 ER 到 Logical Schema 國立中央大學 資訊管理系 范錚強 2004.
Department of Computer Science and Engineering, HKUST Slide 1 Notation Summary R, S: table schemas such as Branch (branch-name, branch-city, assets) Account.
Databases Revision.
中央大學。范錚強 1 從 ER 到 Logical Schema 國立中央大學 資訊管理系 范錚強 2002.
SPRING 2004CENG 3521 The Relational Model Chapter 3.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Methodology Logical Database Design for the Relational Model
RELATIONSHIP  THE WAY TABLES ARE RELATED  A TABLE MUST PARTICIPATE IN AT LEAST ONE RELATIONSHIP  IN A BINARY RELATIONSHIP TWO ENTITIES PARTICIPATE 
1 CMSC424, Spring 2005 CMSC424: Database Design Lecture 8.
Mapping of N:M Relationships PERSON-ID TITLE PERSON-NAME DATE-OF-BIRTH PERSON-ID PROJECT-ID HOURS-SPENT PROJECT-ID END-DATE START-DATE E-R Diagram PERSON.
LOGICAL DATABASE DESIGN
Database Design & ER Diagrams
Chapter 6: Integrity Objective Key Constraints (Chapter 2) Cardinality Constraints (Chapter 2) Domain Constraints Referential Integrity Assertions Triggers.
SQL Constraints & Triggers May 10 th, Agenda Big picture –what are constraints & triggers? –where do they appear? –why are they important? In SQL.
1 Relational model concepts Key constraints Referential integrity constraint Steen Jensen, autumn 2013.
Chapter 6: Integrity and Security Thomas Nikl 19 October, 2004 CS157B.
Department of Computer Science and Engineering, HKUST Slide 1 Comp 231 Database Management Systems Comp 231 Database Management Systems 6. Integrity Constraints.
©Silberschatz, Korth and Sudarshan6.1Database System Concepts Chapter 6: Integrity and Security Domain Constraints Referential Integrity Assertions Triggers.
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 Accounting Information Systems
SQL Data Definition (CB Chapter 6) CPSC 356 Database Ellen Walker Hiram College (Includes figures from Database Systems by Connolly & Begg, © Addison Wesley.
-- 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.
CS-1Q IM Revision 21 January Revision CS-1Q IM Lecture 10 Phil Gray Simon Gay.
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.
RDBMSSection Relational DBMS DATABASE DEVELOPMENT And Franchise Colleges By MANSHA NAWAZ.
Chapter 3: Relational Model  Structure of Relational Databases  Normal forms (chap. 7)  Reduction of an E-R Schema to Relational (Sect. 2.9)  Relational.
For Project 1, Deliverable 4, you will add referential integrity (FOREIGN KEY) constraints to existing tables, as well as composing general assertions.
1.1 CAS CS 460/660 Relational Model. 1.2 Review E/R Model: Entities, relationships, attributes Cardinalities: 1:1, 1:n, m:1, m:n Keys: superkeys, candidate.
How to build ER diagrams
The Relational Model1 ER-to-Relational Mapping and Views.
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.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
Source: Database System Concepts, Silberschatz etc Edited: Wei-Pang Yang, IM.NDHU, Introduction to Database CHAPTER 5 Other Relational Languages.
©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
ER- Relational Mapping (Based on Chapter 9 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
Mapping E/R to RM, R. Ramakrishnan and J. Gehrke with Dr. Eick’s additions 1 Mapping E/R Diagrams to Relational Database Schemas Second Half of Chapter.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
FEN Introduction to the database field: The development process Seminar: Introduction to relational databases Development process: Analyse.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
SCUHolliday - coen 1789–1 Schedule Today: u Constraints, assertions, triggers u Read Sections , 7.4. Next u Embedded SQL, JDBC. u Read Sections.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
©Silberschatz, Korth and Sudarshan6.1Database System Concepts Chapter 6: Integrity Constraints Domain Constraints Referential Integrity Assertions Triggers.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
ER Diagrams and Relational Model CS 174a (Winter 2015)
Chapter 6: Integrity (and Security)
Integrity Constraints
אילוצי שלמות אילוצי תחום מפתחות ומפתחות זרים טריגרים triggers
國立東華大學試題 系所:資訊管理學系 科目:資料庫管理 第1頁/共6頁
資料庫管理作業(一).
國立臺北科技大學 課程:資料庫系統 2015 fall Chapter 14 Normalization.
Question 1: Basic Concepts (40 %)
Example: Banking Database
Unit 12 Index in Database 大量資料存取方法之研究 Approaches to Access/Store Large Data 楊維邦 博士 國立東華大學 資訊管理系教授.
MySQL安裝&操作教學.
Review #1 Intro stuff What is a database, 4 parts, 3 users, etc.
Presentation transcript:

國立東華大學 資訊管理學系 資料庫管理 試題 Wei-Pang Yang, IM.NDHU, /6/20 Final Test-1 Suppose we have a relationship set borrower between customer and loan as shown in Figure 1. a)Draw an E-R Diagram for the application system in Figure 1. (Please show the mapping cardinalities.) b)What does it mean by the total participator, and which one is it? c)What does it mean by the partial participator, and which one is it? d)Reduce E-R model in a) to relational tables. Question 1: E-R Model (20%) customerloan E1 E2 E3 E Relationship Set: borrower Figure 1.

國立東華大學 資訊管理學系 資料庫管理 試題 Wei-Pang Yang, IM.NDHU, /6/20 Final Test-2 Explain the following terms a)blob b)clob c)Integrity Constraints d) e) f)Weak Entity g)Build-in Data Types in SQL h)Specialization vs. Generalization in E-R diagram i)UML Diagram j)Update Anomalies! Question 2: Explain Terms (30%) grant on to EXEC SQL END-EXEC

國立東華大學 資訊管理學系 資料庫管理 試題 Wei-Pang Yang, IM.NDHU, /6/20 Final Test-3 a)When we delete a tuple in branch, eg. Brighton Broklyn , what will happen in 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 ) 5. account 1. branch references Question 3: Referential Integrity (25%) b) When we update the first tuple in branch, eg. Donghwa Broklyn , what will happen in account? c) When we delete the first tuple in account, what will happen in branch?

國立東華大學 資訊管理學系 資料庫管理 試題 Wei-Pang Yang, IM.NDHU, /6/20 Final Test-4 According to your final project as “Design and implement a useful database application system” a)What is the title of your project? b)Names of members in your team. c)Draw the E-R Diagram of your application system. (You can just give a similar diagram.) d)Draw a table to show one relation used in the system e)Check your answer in d) to see whether it is in the 1NF? Why? Please answer “ why ” by using the definition of the 1NF. f)Same as e) to see whether it is in the 2NF? Why? g)Same as e) to see whether it is in the 3NF? Why? Question 4: About Your Final Term Project (25%)