Case study Lisa’s Bookstore IST210.

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

More Diagramming & Practice with Relationship Modeling
SQL Database for a Book Store Clinton McKay. Explanation The database contains information about the books held in stock, their authors, publishers, customers,
Data Modeling. What are you keeping track of? You begin to develop a database by deciding what you are going to keep track of. Each thing that you are.
CSCI3170 Introduction to Database Systems
Database Lecture Notes Mapping ER Diagrams to Tables 2 Dr. Meg Murray
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Accounting System Design
Draw an ER Diagram for the following (record any assumptions):
E/R – ODL – UML CS145 Monday November 26 Sanaz Motahari-Asl.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
COMM 226 ERD case: School of Business
Chapter 3: Modeling Data in the Organization
CSE 441: Systems Analysis & Design
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
CHAPTER 2. FUNDAMENTAL OF ENTITY RELATIONSHIP (ER)
The REA Model. The REA model provides structure for developing an accounting database It helps to identify It helps to The REA Model.
Database Design II (Case Studies: Step 2) IST 210: Organization of Data IST2101.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Test.
What we’ve learnt Doc 5.69 Doc 5.70 Section 1-3. A simple database Related objects Tables hold the data Forms, reports, queries to access the data.
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)
IST 220 – Intro to Databases Analyzing Data Needs.
Database Beginnings. Scenario so far In our scenario we have people registering for training sessions. –The data about the training sessions was placed.
Database Fundamentals Lecture 4 Useful website for MySQL download language.com/workshops/Default.asp ?workshop=21.
Implementing an REA Model in a Relational Database
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
Group Members: Tien Ho Linda Early Steve Meeks. Who Dunnit Bookstore System Request  Project Sponsor: Thomas Jones, Owner of WhoDunnit Bookstore  Phone:
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
Database Design. Database Design Process Data Model Requirements Application 1 Database Requirements Application 2 Requirements Application 4 Requirements.
IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling.
ERD case: School of Business Chitu Okoli Associate Professor in Business Technology Management John Molson School of Business, Concordia University, Montréal.
IST 220 – Intro to Databases Database Design I. DB Design – Sports League The league needs to keep track of Teams Players Coaches Sponsors How many tables.
COMP 430 Intro. to Database Systems Entity-Relationship Diagram Basics Slides use ideas from Chris Ré.
Order Database – ER Diagram Prepared by Bryan Borcher Spring 2014.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 2: MODELING DATA.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
Conversion from ER diagram to relational model 1 ER is a visual model The relational model is a matemathical model.
Data Modeling AND ER MODELS.
Data Modeling and Entity-Relationship Model I
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
DATABASE DESIGN II IST 210: Organization of Data IST210 1.
Lecture # 11 & 12 (First Exam) Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
Week 03 – ER Diagram INFOSYS 222.
Order Database – ER Diagram
Let try to identify the conectivity of these entity relationship
Event-driven accounting information systems
Database Applications
Order Database – ER Diagram
Order Database – ER Diagram
ER MODEL Lecture 3.
INFO/CSE 100, Spring 2005 Fluency in Information Technology
ERD’s REVIEW DBS201.
Entity – Relationship Model
MIS2502: Data Analytics Relational Data Modeling
Bookstore DB Requirements
MIS2502: Data Analytics Relational Data Modeling
Database Design Hacettepe University
Advanced Database Concepts: Reports & Views
MIS2502: Data Analytics Relational Data Modeling
Conceptual modeling of databases
Database Management system
Conceptual Data Modeling
Presentation transcript:

Case study Lisa’s Bookstore IST210

Case Study: Lisa’s Bookstore (1) You are helping Lisa maintain information of her bookstore. A book contains information about book title, publisher, author names, and publication year. For a publisher, store the information about name, location, phone number. An author’s name and country should be stored in the database. IST210

Draw Entities AUTHOR PUBLISHER AuthorID PublisherName Name Country Location Phone BOOK BOOKID Title Year Publisher AuthorID IST210

Publisher and Author should NOT be the attributes of the book! Draw Entities AUTHOR PUBLISHER AuthorID PublisherName Name Country Location Phone BOOK BOOKID Title Year Publisher AuthorID Publisher and Author should NOT be the attributes of the book! Information of publisher and author for a book is captured by the relationships! IST210

Attribute v.s. Foreign Key Please note that there is NO foreign key concept in E-R diagram. Do not make a foreign key as an attribute in the E-R diagram. For example, PublisherName should NOT be an attribute of the BOOK entity. Their relationship is currently represented by the line and the corresponding min/max cardinality. In Chapter 5, we will learn how to transform a E-R diagram to tables. At that point, some relationships might be transformed into foreign key. IST210

Maximum cardinality AUTHOR PUBLISHER AuthorID PublisherName Name Country Location Phone BOOK BOOKID Title Year IST210

Minimum cardinality is 0, BOOKID Title Year AuthorID Name Country PublisherName Location Phone BOOK AUTHOR PUBLISHER Minimum cardinality is 1, if Lisa only wants to store the authors who have at least one book in her bookstore. Minimum cardinality is 0, if Lisa also wants to be able to keep track of some publishers that currently have no books in her bookstore’s inventory. You may want to ask Lisa for the choice of the minimum cardinalities here IST210

Case Study: Lisa Bookstore (2) A customer can be uniquely identified using his/her email address. A customer has information about his/her name, phone number and home address. Lisa wants to track all the book purchases. Each purchase is made by one customer on one book. The price and date of the purchase will be stored in database. A customer may purchase many books or not purchase any book. IST210

AUTHOR PUBLISHER AuthorID PublisherName Name Location Country Phone BOOK BOOKID Title Year PURCHASE PurchaseID Price Date CUSTOMER EmailAddress Name Address Phone IST210

AUTHOR PUBLISHER AuthorID PublisherName Name Location Country Phone BOOK BOOKID Title Year PURCHASE PurchaseID Price Date CUSTOMER EmailAddress Name Address Phone IST210

Case Study: Lisa Bookstore (3) In Lisa’s bookstore, there are some events organized to interact with the customers. Lisa wants to record the information of events, including event name, type, and date. She also wants to record which customers attend which events. IST210

AUTHOR PUBLISHER AuthorID PublisherName Name Location Country Phone BOOK BOOKID Title Year PURCHASE PurchaseID Price Date CUSTOMER Event EmailAddress EventID Name Address Phone Name Date Type IST210

AUTHOR PUBLISHER AuthorID Complete E-R Diagram PublisherName Name Country Location Phone BOOK BOOKID Title Year PURCHASE PurchaseID Price Date CUSTOMER Event EmailAddress EventID Name Address Phone Name Date Type IST210