Database Applications

Slides:



Advertisements
Similar presentations
Data Modeling and the Entity-Relationship Model
Advertisements

Data Modeling and the Entity-Relationship Model
Database Lecture Notes Mapping ER Diagrams to Tables 2 Dr. Meg Murray
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
(wrapping up from last week)
Data Modeling and the Entity-Relationship Model
Database Design Chapter Five DATABASE CONCEPTS, 6th Edition
Chapter 14 Sales day book and sales ledger
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Copyright © 2003 Addison-Wesley Your name here. Copyright © 2003 Addison-Wesley Data Modeling with ER Diagrams What is an Entity-Relationship Model? How.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Database Design Chapter Five DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Case study Lisa’s Bookstore IST210.
Customers Training Where “Lean” principles are considered common sense and are implemented with a passion!
1.When a job comes in office it goes to Customer Service 2.If you are sending in a payment whether the job is in house or on it’s way, it comes to Customer.
Copyright © 2003 Addison-Wesley Jesper Rosholm Tørresø.
Microsoft ® Office Access ™ 2007 Training Get to know Access ICT Staff Development presents:
KROENKE and AUER - DATABASE CONCEPTS (3 rd Edition) © 2008 Pearson Prentice Hall 5-1 Chapter Objectives Learn how to transform E-R data models into relational.
+ Data Modeling (wrapping up from last week). + Homework Review Exercise 4.32 – Develop a data model of a genealogical diagram. Model only biological.
CSC 8560Fall 2000 Computer NetworksBhargavi Balasubramanian & Bob Viola Project 1 Description: E-Commerce Objective:Build a web storefront to sell videos.
Data Modeling IST210 Class Lecture.
Select Customer Menu Option Notice there are two options in the Customer Menu. The first, Customer Contact Menu, records information to assist you in.
Entities“something about which an e.g. organisation keeps data” customer Attributes“the properties of an entity”e.g. address Relationships“the.
Database Design Chapter Five DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
Database Design Sections 8 & 12 Modeling Historical Data, conditional nontranferability, time-related constraints.
Modelling Complex Systems
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
Data Base Design Steps 1.Define Entity Classes (Relations/Tables) and Keys. 2.Define Relationships between Entity Classes. Normalization Steps Eliminate.
Data Flow Diagram Zero Level.
Database Design Chapters 17 and 18.
Click the “Add Team” button to create a brand new team
Customer Service Chapter #4
Let try to identify the conectivity of these entity relationship
Welcome to Barley Hill School’s Online Payment Service
ACCOUNTING FOR MERCHANDISE OPERATIONS
Click the “Add Team” button to create a brand new team
CSIS 115 Database Design and Applications for Business
Sales Order/Sale Entry Form
5 Accounting for Merchandising Operations Learning Objectives
Student Fees are Due.
Database Design Chapter Five DATABASE CONCEPTS, 4th Edition
Database Normalization
© 2014 Cengage Learning. All Rights Reserved.
Classes, Sequence Diagrams and Triangulation
Computer Accounting with QuickBooks 2015
Requisitions from Stock
Subsidiary Ledgers A Subsidiary ledger is a group of accounts with a common characteristic, assembled together to facilitate the recording process by freeing.
ER MODEL Lecture 3.
Example Question–Is this relation Well Structured? Student
Accounting Information Systems
Accounting Information Systems
The Fulfillment Process
© 2014 Cengage Learning. All Rights Reserved.
ERD Exercises.
© 2014 Cengage Learning. All Rights Reserved.
Entity – Relationship Model
Session 2 Welcome: The seventh learning sequence
2-1-1 Automated Verifications
Floral Demo The following demo shows the features of our floral program. The floral program is an additional module of SimPOS! Retail Point of Sale. Descriptive.
Setting up Clover Go account
Discovering Classes.
LESSON 10-1 Accounting for Sales on Account
© 2014 Cengage Learning. All Rights Reserved.
© 2014 Cengage Learning. All Rights Reserved.
Database Management system
Database Management system
Accounting Information Systems
Information Systems in Organizations 2. 1
Simplify Your Sales Process
Presentation transcript:

Database Applications CSCI260 Database Applications Chapter Four Data Modeling and the Entity-Relationship Model The Heather Sweeney Design Example

About the business Heather Sweeny is an interior decorator. Specializes in home kitchen design. Offers seminars at home shows and appliance stores. Seminars are free – used to build customer base, sell products and consulting services.

About the business After someone attends seminar, Heather wants to sell that person a product or service. Wants to develop database to keep track of customers, the seminars they have attended, and the purchases they have made.

The Seminar Customer List Each seminar has a list of customers that attend it. Includes basic data about seminar as well as the attendees.

The Seminar Customer List Two potential entities: SEMINAR and CUSTOMER. From list, it looks like a SEMINAR relates to many CUSTOMERs. There are facts missing, but we can still create an initial E-R Diagram.

The Seminar Customer List Customers can attend as many seminars as they wish. Actually they do not need to attend seminar to get into database. She never offers a seminar to fewer than 10 attendees. Add more data to E-R Diagram…

The Seminar Customer List Need to be able to add seminar to database, whether it has customers or not. Need to assign identifiers. SEMINAR – surrogate key (instead of really large composite key) CUSTOMER – email address

Customer Form Letter Heather sends a form letter to all attendees. Several different letters… form letter 1, form letter 2, form letter 3, etc… Wants to be able to send emails as well

Customer Form Letter Create entity CONTACT ContactNumber – which form letter. ContactType – form letter or email. Relates to both Customers and Seminars. Seminar can result in many contacts. Customer may receive many contacts. Neither a customer nor a seminar need to generate a contact.

Customer Form Letter Can a Contact exist without a seminar? yes. Can a contact exist without a customer? No. CONTACT is a weak entity depending on CUSTOMER. ID-Dependant – the identifier of CONTACT includes the identifier of CUSTOMER.

Customer Form Letter Heather never contacts a customer more than once in any particular day. Date can be identifier for CONTACT. Problem – form letter needs customer’s address, but it isn’t in the CUSTOMER entity. Must be added.

Sales Invoice Used to sell books and videos. Doesn’t record credit card numbers in database, just payment type.

Sales Invoice INVOICE needs to be entity. Should not contain Customer information – keep that in CUSTOMER entity. Still data missing about some of the lines on the invoice form.

Sales Invoice There are multiple line-items in the invoice – cannot store in INVOICE entity. Create weak entity LINE-ITEM to store each line then relate back to INVOICE entity.

Sales Invoice LINE-ITEM needs an identifier. LineNumber. The products sold have standardized names and prices. Create PRODUCT entry and relate it to LINE-ITEM.

Sales Invoice Note UnitPrice appears in both LINE-ITEM and PRODUCT. Want to be able to update price of product without effecting past INVOICES. When Invoice created, the UnitPrice is copied from the PRODUCT entity to the LINE-ITEM entity. Down the road, if price of product goes up, it won’t change the past INVOICES.