You are on page 1of 5

DATABASE MANAGEMENT

SYSTEM CASES
Submitted By: FIERRO, ANIKA MAE
Submitted To: Mr. Dennis Udani

19.) Defining Entities and Data and Data Modeling - Sales Order
Procedures
Required:

a.) List all candidate entities in the procedures described.


The candidate entities in the procedures described are the
following: Lotus Tea Importer Company and all Department
such as Sales, Warehouse and Shipping Department, and
General Ledger Department; Various clerks such as sales
representative, Accounting Department Clerk and AR Clerk,
Stock Release Document, Mailroom Employees, Packing Slip,
Invoice (Physical), Customer Check (Physical), Iventory
Account Summary, Remittance Advices, AR account summary,
Price list, customer, Sales Order, Inventory (Product), Cash
Receipts record (CR Journal), Bill of Lading, Carrier, Deposit
Slip, Shipping Notice

b.) Identify the valid entities and explain why the rejected entities
should not be modeled.
The valid entities are the following: Customer, Sales
Order, Inventory, Cash Receipt Record, Bill of Lading, Carrier,
Deposit Slip and Shipping Notice. All these valid entities meet
Conditions one and two. The rejected entities on the other hand
and the corresponding why they should not be modeled are the
following: Lotus Tea Importer Company and all departments
such as Sales, warehouse, shipping department, general ledger
department it is a violation of rule 1 wherein the company and
these departments are single occurrences; Various clerks such
as Sales representative, accounting department clerk, AR Clerk
it is a violation of rule 1 wherein Wording suggests only one
clerk and a violation of rule 2 wherein there is no evidence of
attributes unique to this entity; stock release document It is a
violation of rule 2 wherein it derives entirely from sales order;
Mail room employees It is a violation of rule 2 wherein
assumption is that no employee specific data needs to be
captured by this system; Packing slip - This is a view It is a
Violation of rule 2 wherein it derived from sales order; Invoice
- It is a Violation of rule 2 wherein it derived from sales order;
Customer Check It is a Violation of rule 2 wherein it used to
create record in cash receipts journal; Inventory account
summary It is a violation of rule 2 wherein it derived from
inventory records; remittance advices it is derived from the
sales order and sent to the customer to facilitate posting
payments to the correct customer account; AR account summary
it is derived from the AR subsidiary ledger or the total of all
unpaid sales orders; Price list this entity may be represented as
either a separate table or more simply as a field in the inventory
record.

c.) Create a data model of the process showing entity associations.

CASH RECEIPTS DEPOSIT


Contains

Sends

SALES ORDER Shipped


Places SHIPPING NOTICE

CUSTOMER
Involves

CASH RECEIPTS

PRODUCT

CARRIER Sent To
d.) Create a fully attributed model by adding primary keys, and data
attributes. Normalize the model.
CASH RECEIPTS
DEPOSIT
CR NUMBER
Contains DEPOSIT NUMBER
DEPOSIT NUMBER
CUSTOMERNUMBER DEPOSIT DATE
CUSTOMER CHECK NUMBER AMOUNT
DATE RECEIVED BANK ACCOUNT NUMBER
AMOUNT

Sends SALES ORDER


SHIPPING NOTICE
ORDER NUMBER Shipped
SN NUMBER
Places
CUSTOMER NUMBER
SHIPPING DATE
ORDER DATE
CUSTOMER
DELIVER DATE
CUSTOMER NUMBER
Involves
ADDRESS
TELEPHONE NUMBER Contains
LINE OF CREDIT
CURRENT CREDIT AVAILABLE BILL OF LADING

BOL NUMBER
LINE ITEM DETAIL
DATE
ORDER NUMBER FOB TERMS
Includes
PRODUCT NUMBER PRODUCT VALUE

QUANTITY SOLD
PRODUCT

PRODUCT NUMBER

DESCRIPTION CARRIER
REORDER POINT
QUANTITY ON HAND CARRIER NUMBER Sent To
EPQ
UNIT SALES PRICE CARRIER NAME
UNIT COST CARRIER ADDRESS
CONTACT PERSON
OFFICE PHONE NUMBER
PERFORMANCE SCORE

20.) Defining Entities and Data Modeling Business Rules

a.) A retail sales company prepares sales order for its customers
purchases. A customer can make many purchases, but a sales order is
written for a single customer.

SALES ORDER
CUSTOMER

b.) A retail sales company orders inventory using a purchase order.


An inventory item may be ordered many times and a purchase order
may be created for more than one inventory item.
ITEM PURCHASE ORDER

c.) A company that sells antique cars prepare a sales order for each car
sold. The inventory for this company consists of unique automobiles,
and only of these automobiles may be listed on a sales order.

AUTOMOBILE SALES ORDER

d.) A grocery store identifies returning customers via a plastic card


and the clerk scans at the time of each purchase. The purpose of this
card is to track inventory and maintain a database of customers and
their purchases. Obviously, a customer may purchase an unlimited
number of items from the grocery store, items are unique only by a
UPC code, and each UPC code and may be associated with many
different customers.

ITEM CUSTOMER

e.) A video rental store uniquely identifies each of its inventory items
so customers can rent a movie and return the movie via drop box, and
the store can identify which copy of the movie was rented and
returned. A customer is allowed to rent up to six movies at a time, but
a movie can only be rented by one customer at a time.

CUSTOMER MOVIE

21.) Comprehensive Case


a.) List all candidate entities in the procedures described.
The candidate entities in the procedures described are the
following:
b.) Identify the valid entities and explain why the rejected entities
should not be modeled.
c.) Create a data model of the processes showing entity associations.
d.) Create a fully attributed model by adding primary keys, foreign
keys, and data attributes. Normalize the model.
e.) Prepare a data flow diagram of the system showing the data stores.