Broad
12-30-2009, 04:13 AM
Please help is needed in this topic: I would be very very thankful.
It is about a pizza shop: (Questions are at the bottom)
Read this first:
[Customers will need to be registereed , with their name, adddress and phone number. Once registered, customers can phone up and order the food they require by quoting their customer number (or name/ address if they can't rember it). Customers select which pizza (s) they require and how many they want. The order is then assembled and delivered to the customer.
When an order is taken, a note needs to be made of the time and date when it was made, and the member of staff who has taken it. The order value has to be more than $10 otherwise a $2 delivery charge is applied.]
Question:
Identify for me all entities.
List the attributes of the entities,
Ensure attributes can't be broken down into further attributes (atomic).
Thanks again in advance:)
This is my WORK:
[[
Entities
Customer
Order
Pizza
Member of Staff
Attributes
Customer:
CustomerNo
Customer Name
Surname
Address
Phone Number
Pizza:
Pizza Type
Quantity
Pizza Price
Order:
Order Date
Order Time
Member of Staff:
Employee ID
Employee Name
Employee Surname
First normal form (1NF)
1st Normal Form
CUSTOMER(CustomerNo, CustomerName, CustomerSurname,
ADDRESS, PhoneNumber,)
PIZZA(PizzaID, PizzaType,)
MEMBEROFSTAFF(StaffID, StaffForename, Staff Surname)
ORDER(OrderID, OrderTime, Orderdate, DeliveryCharge, PizzaQuantity , TotalCost)
]]
It is about a pizza shop: (Questions are at the bottom)
Read this first:
[Customers will need to be registereed , with their name, adddress and phone number. Once registered, customers can phone up and order the food they require by quoting their customer number (or name/ address if they can't rember it). Customers select which pizza (s) they require and how many they want. The order is then assembled and delivered to the customer.
When an order is taken, a note needs to be made of the time and date when it was made, and the member of staff who has taken it. The order value has to be more than $10 otherwise a $2 delivery charge is applied.]
Question:
Identify for me all entities.
List the attributes of the entities,
Ensure attributes can't be broken down into further attributes (atomic).
Thanks again in advance:)
This is my WORK:
[[
Entities
Customer
Order
Pizza
Member of Staff
Attributes
Customer:
CustomerNo
Customer Name
Surname
Address
Phone Number
Pizza:
Pizza Type
Quantity
Pizza Price
Order:
Order Date
Order Time
Member of Staff:
Employee ID
Employee Name
Employee Surname
First normal form (1NF)
1st Normal Form
CUSTOMER(CustomerNo, CustomerName, CustomerSurname,
ADDRESS, PhoneNumber,)
PIZZA(PizzaID, PizzaType,)
MEMBEROFSTAFF(StaffID, StaffForename, Staff Surname)
ORDER(OrderID, OrderTime, Orderdate, DeliveryCharge, PizzaQuantity , TotalCost)
]]