Oracle Academy -Week 1-.

Slides:



Advertisements
Similar presentations
Chapter # 4 BIS Database Systems
Advertisements

Database Design Lessons 2 & 3 Database Models, Entities, Relationships.
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Entity Relationship (ER) Modeling
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Entity Relationship (ER) Modeling
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (E-R) Modeling
Entity Relationship (ER) Modeling
IT420: Database Management and Organization
Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Modeling the Data: Conceptual and Logical Data Modeling
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Chapter Five Data Modeling with the Entity-Relationship Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Entity Relationship Diagrams
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Entity-Relationship Model
Modern Systems Analysis and Design Third Edition
APPENDIX C DESIGNING DATABASES
Database Design Sections 4 & 5 Subtype, Supertype, Mutually exclusive, non-transferability, transferable, 1:1, 1:M, M:M, Redundant, Intersection entity,
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Data Modeling Using the Entity-Relationship Model
Ch5: ER Diagrams - Part 2 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 1.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Overview of Database Development
Database Design Sections 4 & 5 Subtype, Supertype, Mutually exclusive, non-transferability, transferable, 1:1, 1:M, M:M, Redundant, Intersection entity,
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Design Sections 6 & 7 Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies and Recursive relationships.
Entity Relationship Diagrams Objectives s Learn the Elements of the E-R model (entities, attributes, and relationships) s Show how to apply the E-R model.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
1.  An introduction to data modelling  The purpose of data modelling  Modelling data relationships 2.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Data Modeling IST210 Class Lecture.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Component 4/Unit 6b Topic II Relational Databases Keys and relationships Data modeling Database acquisition Database Management System (DBMS) Database.
Database Design Sections 11 Database relationship, Integrity, keys, mapping conceptual model to logical/physical model Previous Section 12 – DDLesson11Fa12.ppt.
Description and exemplification of entity-relationship modelling.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Entity Relationship Modeling
Supertypes and Subtypes
Entities, Instances, Attributes and Identifiers. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Define and give.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Topic 3 – Data Modeling Techniques Unit 1 – Database Analysis and Design Advanced Higher Information Systems St Kentigern’s Academy.
subtype 1.inherits all attributes of the supertype 2.inherits all relationships of the supertype 3. usually has its own attributes or.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
1 Database Design Sections 6 & 7 First Normal Form (1NF), Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies.
DATA MODELING AND DATABASE DESIGN
Review of Week 1 Database DBMS File systems vs. database systems
Guide to Modeling Keys to E-R diagrams.
Guide to Modeling Keys to E-R diagrams.
Entity Relationship (ER) Modeling
DATA MODELING AND DATABASE DESIGN
Presentation transcript:

Oracle Academy -Week 1-

Entities and Instances An entity is: - “Something” of significance to the business about which data must be known - A name for the things that you can list - Usually a noun  Examples: objects, events  Entities have instances.

Attributes and Unique Identifiers Like an entity, an attribute represents something of significance to the business. An attribute is a specific piece of information that: Describes an entity Quantifies an entity Qualifies an entity Classifies an entity Specifies an entity An attribute has a single value.

Attributes and Unique Identifiers Attributes have values. An attribute value can be a number, a character string, a date, an image, a sound, etc. These are called "data types" or "formats." Every attribute has a data type. Some attributes (such as age) have values that constantly change. These are called "volatile attributes." Some attributes must have a value. These are mandatory attributes. For example: in most businesses that track personal information, name is required.   Others attributes may have a value or be left null. These are optional attributes. For example: cell phone number is often not required, except in mobile or wireless applications. A UID is an attribute or combination of attributes that distinguish one instance from another.

Entity relationships Each relationship: Represent something of significance to the business Show how entities are mutually related Always exists between two entities (or one entity twice) Always has two sides Is named at both ends Has an optionality Has a degree or cardinality Optionality = Must or may? Cardinality = How many?

ER Diagramming Conventions Drawing Conventions Entities are represented by softboxes. Entity names go in the softboxes. Entity names are always singular and written with all capital letters. Attributes are listed under the entity names. Mandatory attributes are marked with “*.” Optional attributes are marked with “°.” Unique identifiers are marked with “#.” Relationships are lines that connect entities. These lines are either solid or dashed.   These lines terminate in a “single toe” or a “crow’s foot” at the end of each entity.

Drawing Relationships and Speaking ERDish The components of ERDish: 1. EACH 2. Entity A 3. OPTIONALITY (must be/may be) 4. RELATIONSHIP NAME 5. CARDINALITY (one and only one/ one or more) 6. Entity B Since a relationship has two sides, we first read one side -- from left to right.

Matrix Diagram It is useful to know more than one way of discovering relationships. The matrix diagram is a good way to make sure that we haven’t missed any relationships -- especially useful when you are dealing with a lot of entities.

Supertypes and Subtypes Sometimes it makes sense to subdivide an entity into subtypes. This may be the case when a group of instances has special properties, such as attributes or relationships that exist only for that group, or when there is some functionality that applies only to the group. In this case, the entity is called a "supertype" and each group is called a subtype. A subtype: inherits all attributes of the supertype inherits all relationships of the supertype usually has its own attributes or relationships is drawn within the supertype never exists alone may have subtypes of its own is also known as "subentity"

Supertypes and Subtypes Always More Than One Subtype When an ER model is complete, subtypes never stand alone. In other words, if an entity has a subtype, there should always be at least a second subtype. This makes sense. What use would there be for distinguishing between an entity and the single subtype? This idea leads to the two subtype rules: Exhaustive: Every instance of the supertype is also an instance of one of the subtypes. Mutually Exclusive: Every instance of the supertype is of one and only one subtype. You can nest subtypes. For ease of reading --  “readability” -- you would usually show subtypes with only two levels, but there is no rule that would stop you from going beyond two levels.

Documenting Business Rules Two Types of Business Rules: Structural and Procedural Structural business rules indicate the types of information to be stored and how the information elements interrelate. Procedural rules are workflow or business process related.

Relationship Transferability Optionality Can you have a TYPE that does not classify any SONG? Must every SONG have a TYPE? Cardinality How many SONGs can be lumped into a TYPE? How many TYPEs can a SONG have? Transferability Can a SONG be changed from one TYPE to another TYPE?

Relationship Types One-to-Many (1:M) Relationships The various types of 1:M relationships are most common in an ER Model. You have seen several examples already. Many-to-Many (M:M) Relationships The various types of M:M relationships are common, particularly in a first version of an ER model. In later stages of the modeling process, most M:M relationships, and possibly all, will disappear. One-to-One (1:1) Relationships Usually you will find just a few of the various types of 1:1 relationships in every ER model. Mandatory at one end of the 1:1 relationship commonly occurs when roles are modeled. See the school model. 1:1 relationships (of all three variations) also occur when some of the entities represent various stages in a process. Redundant Relationships A redundant relationship can be derived from another relationship in the model.

Resolving Many-to-Many Relationships Resolution of a M:M Relationship A third entity is needed to resolve the resulting M:M relationship. This is called the "intersection" entity. Barred Relationships The unique identifier (UID) of the intersection entity often comes from the originating relationships and is represented by the bars. In this case, the relationships from the originating entities to the intersection entity are called "barred" relationships.

Normalization and First Normal Form First Normal Form (1NF) First Normal Form requires that there be no multivalued attributes and no repeating groups. To check for 1NF, validate that each attribute has a single value for each instance of the entity.