2
Sample cases
2
Objectives
Introduce Premiere Products,
♥ the company used as the basis for this course
Introduce Henry Books
Introduce Alexamara Marina Group
3
Premiere Products Background
Sample Order Source: Concepts of Database Management
4
Premiere Products Background (continued)
Sales Reps ♥ Sales rep number, last name, first name, address, total
commission, commission rate
Customers ♥ Customer number, name, address, current balance, credit limit,
customer sales rep
Parts Inventory ♥ Part number, description, number units on hand, item class,
warehouse number, unit price
Items for each customer’s order ♥ Order
♣ Order number, order date, customer number
♥ Order line ♣ Order number, part number, number of units ordered, quoted price
♥ Overall order total ♣ Not stored because it can be calculated
5
Entities, Attributes, and Relationship
Source: Concepts of Database Management
Relationship
6
Rep and Customer Tables
Source: Concepts of Database Management
7
Orders and OrderLine Tables
Source: Concepts of Database Management
8
Alternative Orders Table
Source: Concepts of Database Management
9
Henry Books Database Case
Henry Books
♥ Book store chain operated by Ray Henry
♥ Sells used books and remainders
Henry decided to use database to gather and store
information on:
♥ Branches
♥ Publishers
♥ Authors
♥ Books
9
10
Sample Branch and Publisher Data
Branch
Source: Concepts of Database Management
11
Sample Author Data Sample Book Data
Source: Concepts of Database Management
12
Wrote Table Relates Books to Authors
Source: Concepts of Database Management
13
Copy Table Relates Books to Branches
Source: Concepts of Database Management
14
Henry Books
E-R diagram for the Henry Books database Source: Concepts of Database Management
15
Henry Books
If Henry Books sells only new books?
♥ Inventory table instead of Copy table
OnHand
BookCode
BranchNum
Inventory
Source: Concepts of Database Management
16
Alexamara Marina Group Database Case
Alexamara Marina Group offers in-water boat storage to
owners
♥ Provides boat slips that boat owners can rent on an annual basis
♥ Two marinas: Alexamara East and Alexamara Central
♥ Provides boat repair and maintenance services
Database used to store data
17
Alexamara Marina Group
Sample marina data for Alexamara Marina Group
Sample owner data for Alexamara Marina Group
Source: Concepts of Database Management
18
Alexamara Marina Group
Sample data about marina slips for Alexamara Marina Group
Source: Concepts of Database Management
19
Alexamara Marina Group
Sample data about service categories for Alexamara Marina Group
Source: Concepts of Database Management
20
Alexamara Marina Group
Sample data about service requests for Alexamara Marina Group
Source: Concepts of Database Management
21
Alexamara Marina Group
E-R diagram for the Alexamara Marina Group database
Source: Concepts of Database Management
22
Alexamara Marina Group
Alternative E-R diagram for the Alexamara Marina Group database
Slip Yacht
MarinaSlip
BoatID
SlipID
Period
Marina Owner
Service
Request
Service
Category
Assign