CS 3630 Database Design and Implementation. Assignment 1 2 What is 3630?

Slides:



Advertisements
Similar presentations
Database Design: ER Modelling
Advertisements

Data Modeling (CB 12) CPSC 356 Database Ellen Walker Hiram College (Includes figures from Database Systems by Connolly & Begg, © Addison Wesley 2002)
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
CSC271 Database Systems Lecture # 22. Summary: Previous Lecture  Applying Database SDLC on DreamHome  Database planning  System definition  Requirements.
Data Modeling and Relational Database Design ISYS 650.
Pertemuan Entity Relationship Diagram
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Lecture Eleven Entity-Relationship Modelling
Data Modeling ISYS 464. Database Design Process Conceptual database design: –The process of creating a data model independent of implementation details.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
Modeling & Designing the Database
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Chapter 3)
Data Modeling Using the Entity-Relationship Model
Entity-Relationship modeling Transparencies
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Data Modeling Using the Entity-Relationship Model
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
the Entity-Relationship Model
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Chapter 5 Entity–Relationship Modeling
Chapter 11 (I) CIS458 Sungchul Hong. Chapter 11 - Objectives How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
C HAPTER 11 Entity-Relationship modelling Transparencies © Pearson Education Limited 1995,
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
9/10/2012ISC 329 Isabelle Bichindaritz1 Entity Relationship (E-R) Modeling.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
Chapter 8 Methodology - Conceptual Database Design Chapter 15 in Textbook.
1 Chapter 11 Entity-Relationship Modeling Transparencies Last Updated: 25 April 2011 By M. Arief
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
CS 3630 Database Design and Implementation. 2 DreamHome Branch (branchNo, street, city, state, zipcode, phone1, phone2, phone3) Staff (staffNo, firstName,
CS 3630 Database Design and Implementation. 2 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
1 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Entity Relationship Modeling
Part3 Database Analysis and Design Techniques Chapter 05- Entity-Relationship Modeling Lu Wei College of Software and Microelectronics Northwestern Polytechnical.
Modelling Methodologies Chapter 16, 17, 18. Modeling Methodologies2 Database Design Physical DB design Logical DB design Conceptual DB design Hardware.
1 Database Systems Entity Relationship (E-R) Modeling.
Quiz Where to Store Attributes of Relationship Staff (1) Interviews (0..*) Client Attributes: date, time, comment Staff (StaffNo, …) PK: StaffNo.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
DBMS ER model-2 Week 6-7.
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
CSCI 6315 Applied Database Systems Review for Midterm Exam I Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Data Modeling Using the Entity- Relationship (ER) Model
Data Modeling Using the Entity- Relationship (ER) Model
Entity- Relationship (ER) Model
COP Introduction to Database Structures
Conceptual Design & ERD Modelling
CS 3630 Database Design and Implementation
Entity Relationship Model
CS 3630 Database Design and Implementation
Entity-Relationship Modelling
Entity-Relationship Modeling
Lecture3: Data Modeling Using the Entity-Relationship Model.
Conceptual Database Design
Entity-Relationship Modeling
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Entity-Relationship Modelling
Conceptual Data Modeling Using Entities & Relationships
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Presentation transcript:

CS 3630 Database Design and Implementation

Assignment 1 2 What is 3630?

3 Database Design Relational Database A collection of normalized tables/relations.

4 The Three Level ANSI-SPARC Architecture DBTG (Data Base Task Group) Appointed by the Conference on Data Systems and Languages in 1971 Two level approach SPARC: Standards Planning And Requirement Committee ANSI/X3/SPARC, 1975 Based on IBM's view For any database system Data Independence.

5 View 1View 2View 3 … Conceptual schema Internal schema External Level Conceptual Level Internal Level Database The Three Level ANSI-SPARC Architecture

6 Phases of Database Design Conceptual Database Design Understanding the data Logical Database Design Normalization Physical Database Design We ignore it.

7 Conceptual Database Design Users' views Understanding of the meaning of the data Common Sense Business rules Do not assume anything Students without any classes at UWP Classes without any students E-R Model Formal document to specify the requirements Entity and Relationship Independent of the target data model (relational, OO).

8 Logical Database Design Designer's view Based on the target data model Relational Normalization.

9 Physical Database Design Base relations and constraints File Organization and Storage Structure (Appendix C) Others.

10 Conceptual Database Design E-R Model (Ch 11) High level conceptual data model Top-Down approach Widely used but not the only model UML (Unified Modeling Language) Draw ER diagrams.

11 Entity Types A group of objects with the same properties, which are identified by the enterprise as having an independent existence. Similar to Class in OOP Class is an implementation of Entity.

12 Physical Existence Branch Staff PropertyForRent Client Owner Customer Product Supplier.

13 Conceptual Existence Viewing Inspection Sale Work Experience.

14 Entity Occurrence A uniquely identifiable object of an entity type. Class and Object.

15 Diagrammatic Representation of Entity Types Rectangle The first letter of the entity name is upper case BranchStaff

16 Relationship Types (Not Relation) A set of meaningful associations among entity types. Branch Has Staff Staff Manages Branch Owner Owns PropertyForRent.

17 Relationship Occurrence A uniquely identifiable association, which includes one occurrence of each participating entity type Example Branch B003 has staff SG5 Owner O321 owns property P1045.

18 Semantic Net for Relationship Occurrence BranchHasStaff B003 B007 r1 r2 r3 SG5 SG37 SA9

19 Diagrammatic Representation of Relationship Types Directed line with the relationship name BranchStaff Has

20 Degree of Relationship Type The number of participating entity types in a relationship Binary Ternary Quaternary

21 A Ternary Relationship BranchStaff Client Registers

22 A Quaternary Relationship BuyerBank Bid Arranges Solicitor A solicitor arranges a bid on behalf of a buyer supported by a financial institute.

23 Recursive Relationship A relationship type where the same entity type participates more than once in different roles. Staff (Supervisor) supervises Staff (Supervisee) Roles Supervisor Supervisee.

24 Recursive Relationship Staff Supervisor Supervisee Supervises

25 Multiple Relationships between the Same Entity Types Branch Has Staff (Staff Members) Staff (Manager) Manages Branch.

26 Multiple Relationships between Entity Types BranchStaff Has Manages

27 Relationship or Entity? Viewing As Entity in DreamHome example Could be a Relationship Client Views PropertyForRent It can be treated either way The final design will be the same.

28 Attributes of an Entity Type A property of an entity type or a relationship type. Similar to the fields of a class PropertyForRent propertyNo address (street, city, state, zipcode) type rooms rent...

29 Attributes of a Relationship Advertises Date Cost NewsPaperPropertyForRent Advertises

30 Domain of Attribute The set of allowable values for one or more attributes PropertyForRent propertyNo: String (size) type: ‘Flat’, ‘House’ rooms: integer, rent: integer, 150 –

31 Simple and Composite Attribute Simple attribute An attribute composed of a single component position salary GPA Composite attribute An attribute composed of multiple components name : firstName, lastName, middle address: street, city, state, zipcode DOB : year, month, day workExperience: organization, position, start, end.

32 Single-valued and Multi-valued Attribute Single-valued: An attribute that holds a single value for each occurrence of an entity type branchNo name DOB GPA The value could change from time to time, but one value at any given time. Multi-valued: An attribute that can hold multiple values for each occurrence of an entity type phoneNo studentMajor workExperience.

33 Composite and Multi-valued Attribute Composite attribute could be single-valued or multi- valued name: single-valued workExperience: multi-valued Multi-valued attribute could be simple or composite phoneNo: simple workExperience: composite.

34 Composite and Multi-valued Attribute Simple attribute could be single-valued or multi- valued salary: single-valued major: multi-valued Single-valued attribute could be simple or composite salary: simple DOB: composite.

35 Derived Attribute An attribute that represents a value that is derivable from the values of a set of related attributes, not necessarily in the same entity type. Age Total Number of staff members Deposit of Lease is twice the rent.

36 Required or Optional Attribute Required Attributes studentID Name DOB... Optional Attributes phoneNo Major...

37 Assignment 2 Due beginning of class, Friday, Feb 6

Quiz1 Wednesday 38