Representing Information with Data Models What is a data model and data modeling? What are Entities and Attributes? Relationships between entities Modeling.

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management Tenth Edition
Advertisements

IT420: Database Management and Organization
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
Entity Relationship (E-R) Modeling
Relational Databases Relational Model Primary Keys Relation or Relationship Foreign Keys Relationships between entities Integrity Constraints Power of.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
ER Modeling An E-R model is a conceptual (or logical) data model that includes –Entity (classes) –Attributes of each entity –Relationship types between.
--The Entity Relationship Model(1)--1 The Entity Relationship Model.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Copyright © 2003 Addison-Wesley Your name here. Copyright © 2003 Addison-Wesley Data Modeling with ER Diagrams What is an Entity-Relationship Model? How.
CIT 381 introduction to relations. Tables movieIdtitlegenrelengthrating 101The Thirty- Nine Steps mystery101R 123Annie Hallromantic comedy 110R 145Lady.
Chapter Five Data Modeling with the Entity-Relationship Model.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
Representing Information. Data Models A data model is a precise description of information content Types of data models Conceptual (high-level): in terms.
Information Resources Management January 30, 2001.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
Example BigHit Video Inc. wants to create an information system for online sales of movies in both DVD and videotape format. People will be allowed to.
Chapter 4 Entity Relationship (E-R) Modeling
Copyright © 2003 Addison-Wesley Your name here. Copyright © 2003 Addison-Wesley Representing Information with Data Models What is a data model? How does.
8/28/97Information Organization and Retrieval Database Design University of California, Berkeley School of Information Management and Systems SIMS 202:
APPENDIX C DESIGNING DATABASES
Data Modeling 1 Yong Choi School of Business CSUB.
Entity-Relationship Design
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
IST Databases and DBMSs Todd S. Bacastow January 2005.
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.
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
3 Chapter 3 Entity Relationship (E-R) Modeling Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Copyright © 2003 Addison-Wesley Jesper Rosholm Tørresø.
2 1 Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Ninth Edition
Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 2: Representing Information with Data Models The lecture notes.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Relational Database. Database Management System (DBMS)
CS 1308 Computer Literacy and the Internet
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Copyright © 2003 Addison-Wesley Sree Nilakanta. Copyright © 2003 Addison-Wesley Developing Relational Models What is the relational model and what is.
Description and exemplification of entity-relationship modelling.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
CS311 Database Management system Somchai Thangsathityangkul 1.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
1 Database Systems Entity Relationship (E-R) Modeling.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
Data Modeling AND ER MODELS.
Microsoft Access CS 110 Fall Entity Relationship Model Entities Entities Principal data object about which information is to be collectedPrincipal.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
Database Systems: Design, Implementation, and Management Tenth Edition
Entity Relationship Diagram
CS311 Database Management system
Chapter 12 Information Systems.
Information Systems Database Management
Database Management system
Week 11: Database Management System
Database Modeling using Entity Relationship Model (E-R Model)
DATABASE TECHNOLOGIES
Presentation transcript:

Representing Information with Data Models What is a data model and data modeling? What are Entities and Attributes? Relationships between entities Modeling is an iterative process Data modeling tools Discovering entities, attributes, relationships from Big Hit video rental receipt

What is a data model A data model is a relatively simple, usually graphic, representation of complex real-world data structures. It serves as a bridge between those real-world things and the physical representation of those concepts in a database. Types of data models –Conceptual: in terms that users will understand (ER) –Logical: in terms that a relational database system will understand (IDEF1X) –Physical: in terms of the underlying computer hardware and operating system (for a specific RDBMS) Database schemas –Schema is another word for model. It is generally a written description and is specific to a particular database system.

Schemas A Schema is a data model that is intended to be used with a particular database system –External schemas are defined for the users of a database –Logical schema defines the representation as a collection of tables that are stored in a database server –Internal schema defines the representation used by the database server to store the tables in memory or files

Entities Entity (instance) –A thing (object) that is of interest to an information system –An abstraction of the object that contains those characteristics that are important to the information system Entity (class) –The common characteristics that represent a set of entity instances –The common characteristics of a particular set of entity instances that make them distinct from other entities

Attributes Attribute value –A characteristic of an entity –The value of a particular characteristic Attribute –A characteristic that helps to describe an object Key attribute(s) uniquely identifies entities

Examples –Entity (instance): A customer, or the characteristics of a customer that are of interest –Entity (class): All of the potential customers, or the information about them –Attribute: last name or city they live in –Attribute value: last name is ‘Smith’ or city they live in is ‘Eugene’ –Key Attribute: accountId –Key Attribute Value: 101

Big Hit Entities CustomerA customer of the business VideoAn item in the rental inventory EmployeeA person who works in one or more stores PayStatementA record of the wages paid to an employee TimeCardA record of a block of time worked by an employee at a store StoreOne of the retail outlets of BigHit Video RentalThe rental of a video by a customer for a specific period and cost PurchaseOrderA request to purchase an item SupplierA company that sells items to BigHit Video

Big Hit Customer Attributes accountIdunique identifier lastNamelast name firstNamefirst name streetstreet address where they live citycity in which they live statestate in which they live zipcodezipcode in which they live Balancehow much money they owe

Relationships A relationship is a connection between 2 entities –Customer Jane Block rents the video with videoId A relationship type between 2 entity classes represents the possibility that two entities may be related –A customer may rent a video Attributes and relationship types are not the same –The customer accountId is not an attribute of the Video entity class

Relationship Types A relationship type may be limited in how many relationships an object may have The cardinality of a relationship type may be –One-to-one: Each instance of an entity may have no more than one instance of the other entity –One-to-many: One of the entities allows an instance to have any number of related instances, but the other entity restricts its instances to be related to no more than one instance. –Many-to-many: Instances of both entities may have any number of related instances of the other entity.

One-to-many Relationship Example

Many-to-many Relationship Example

Modeling is an Iterative Process Don’t expect to get the model correct the first time Modeling is an iterative process Begin by just identifying entities and relationships Next identify keys Adjust relationships and entities Think about how you will put data in and get data out What limitations does your model impose? Add more attributes Show it to your customer or colleagues Add more constraints and look at cardinality

What are the relationships, entities and attribute values in this video rental receipt? What entity classes, attributes and relationship types are implied by the video rental receipt? BigHit Video Rental Receipt Account ID: 101video ID: Date: January 9, 2002 Cost: $2.99 Jane Block 1010 Main St. Apopka, FL ElizabethDate due: January 11, 2002

Data Modeling Tools PowerDesigner (Sybase) ERWin (Computer Associates) ERStudio (Embarcadero) Designer (comes with Oracle) ModelSphere (SilverRun) CASE Studio 2 Visio