Professional Documents
Culture Documents
CS 1103-01 - AY2024-T3 Learning Journal Unit 2 John Paul Balmaceda
CS 1103-01 - AY2024-T3 Learning Journal Unit 2 John Paul Balmaceda
Customer Management:
The system stores the customer's last name, first name, address, phone number, and
email.
Sales Tracking:
The system records the date of the sale (SaleDate), the subtotal, the tax amount, and
Each item in a sale (Sale Item) has a unique identifier within that sale (SaleItemID).
The system tracks the price of each item at the time of sale (ItemPrice).
Inventory Management:
Store Information:
The system records the store's name, phone number, and email.
Relationships:
A customer can make many purchases (sales), and a sale is made to one customer.
A store can make many sales, and a sale is made by one store.
A sale can consist of many sale items, but a sale item belongs to one sale.
An item can be sold many times in different sales, and a sale item corresponds to one
item.
Now let's describe the cardinalities in the diagram:
Customer to Sale (Buys/SoldTo): A customer can have multiple sales (1 to many), but
each sale is associated with one and only one customer (many to 1).
Sale to Store (Sells/SoldBy): A store can have multiple sales (1 to many), but each sale
Sale to Sale Item: Each sale can have multiple sale items (1 to many), but each sale
Item to Sale Item: An item can be part of multiple sale items (1 to many), indicating it
can be sold multiple times in different sales. Each sale item corresponds to one and
Reference:
Sharma, N., Perniu, L., Chong, R. F., Iyer, A., Nandan, C., Mitea, A. C., Nonvinkere, M. &