Professional Documents
Culture Documents
Data Modeling Case Study
Data Modeling Case Study
Objects
Database
Application
Form
Tables
Repor
t
Query
(View)
-1-
Database:
Tables, Columns, Rows,
Primary Keys, Foreign Keys
and Relationships
Potential relational database
for Coca-Cola Bottling Co.
-2-
DATA
ACME
Enterprise
We do
these things
CRUD
SQL Operations
Insert
Update
Delete
Select
ACTIVITY
HIRE
EMPLOYEE
PAY
EMPLOYEE
Create
Update
Delete
Read
User
Interface
App.
EMPLOYEE
......
......
....
....
PROMOTE
EMPLOYEE
FIRE
EMPLOYEE
Data
Process
-3-
sells;
is sold on
Product
placed by;
places
Member
is enrolled under;
applies to
established by;
established
generates;
generated by
is featured in;
features
Agreement
Promotion
sponsors;
is sponsored by
Club
-4-
Northwind Database
-6-
A Business Form
-7-
OrderNo
OrderDate
CustNo
CustAddress
CustType
Tax
Total
one or more than one Order-Item which has
ProductNo
Description
Quantity
UnitPrice
Subtotal.
-8-
Solution
Unnormalized table
1st NF
Remove partial FD
2nd NF
Remove transitive FD
(OrderNo, ProductNo, Quantity, UnitPrice, Subtotal)
Subtotal
(ProductNo, Description, UnitPrice)
3rd NF
-9-
- 10 -
- 11 -
- 12 -
http://www.oracle.com/tools/jdeveloper/documents/jsptwp/index.html?content.html
Auction Web
Site's Data Model
- 13 -