Calculate and display the payment of driver

Assignment Help Database Management System
Reference no: EM131436908

Database Management Assignment

Part 1: Requirements

Data Requirements - outlining the major data items:

1. GourmentPizza:

The shop's registration number given by the local Govt., location as well as contact number is maintained by this data item.

2. Customer: This data item contains details information about customers who want to place order by phone or walk-In. In case of phone order customer, the customer's phone number is recorded. But, customer's name is only stored for walk-in customer. For all types of customers, a unique customer's identification number is stored.

3. MenuItem: The offered items by Gourmet Pizza are maintained in this data store. The attributes must be unique item number, name of the item, size in cm for each item and selling price for the item.

4. Ingredient:  This data item is necessary for storing ingredient information for making menu items.  The information must be unique identification number, name, type and description of the ingredients, reorder level, the last date when the stock was recorded and suggested stock level.

5. Discount_prog: This data item stores about a particular discount program relating to menu items. The starting date, ending date, requirement, discount % and description for each discount program is stored as well as a unique discount code.

6. IngrOrder: For ordering ingredients in the following week for the shop; this data item is necessary. This data item must store unique identification number for ordering ingredients, actual level of ingredients/week and suggested order for ingredients/week. From these attributes, a derived attribute is necessary for calculating the order needed in the next week.

7. Supplier:  It stores all currently suppliers' information including code, name, address and phone number. Those suppliers used to supply the ingredients.

8. Order: This data item stores information of an order placed by the customer. It stores all necessary info about the order including payable amount and payment mode for the order. The other attributes for Order data item should be, date of order, quantity for order, price for that order, discount amount(if any), discount code (if any), status, type and description for that order.

9. Order (Phone): It maintains the order that is done by phone. The customer's phone, duration of phone, call terminates time and CRM's ID must store here.

10. Order (Walk-In): It maintains the order that is done by customer who wants to visit the shop physically. The customer's name is recorded here.

11. ConfirmedOrder: It stores only confirmed order i.e. after confirmation of customer; CRM maintains it. It contains a unique identification number with Order Identification number that is placed at the first time by customer.

12. Unconfirm Order: It stores only unconfirmed order i.e. after checking of unrecognized customers by CRM. It contains a unique identification number with Order Identification number that is placed at the first time by customer.

13. CRM: It stores only assistant's ID and customer's contact number. This entity manages and verifies customers' order by phone as well as keeps confirmed and unconfirmed order after verification of customer. It also keeps records for unrecognized customers.

14. PaymentRec: Customer's payment information after receiving order is stored here. It can be two types like card and cash payment. The payment info should be date of payment, amount and mode of payment as well as a unique transaction number.

15. Card(Payment): It stores payment information after making payment by card. In addition a payment approval number is stored here.

16. Cash (Payment): It stores payment information after making payment by cash. In addition a transaction number is stored here.

17. Employee: All employees' information like first name, last name, address, phone number, tax file number, status and description are stored here. The employees are categorized into two types, FloorStaff and Driver.

FloorStaff:  This data item is necessary for storing information about ShopWorker who used to serve for walk-in customers. The information about payment rate/hour, shifting data and total calculated pay is stored in this data item.

Driver:  This data item is necessary for storing Information about Driver who used to serve phone order customers for home delivery. The information about license number, payment rate/order, shifting data and total calculated pay is stored here.

18. Bank: This entity stores bank's information of employees including Bank code, Bank name and Account Number.

Transaction requirements - outlining the data manipulation and queries

The data manipulation operations as well as different queries for the database can be managed in the following ways.

Data Manipulation Operations:

  • Insert/ update/delete a MenuItem into the database.
  • Insert/ update/delete an Ingredient of MenuItem into the database.
  • Insert a new customer into the database
  • Delete/Update an existing customer from database.
  • Insert/ update/delete a service of the shop into the database
  • Insert/ update/delete a CRM into the database
  • Insert/ update/delete an order by customer into the database
  • Insert/ update/delete a confirmed or unconfirmed order by CRM.
  • Insert/ update/delete an UnRecognized Customer by CRM.
  • Insert/ update/delete a Discount_prog into the database.
  • Insert/ update/delete an IngrOrder.
  • Insert/ update/delete a supplier for supplying ingredients.
  • Insert/ update/delete a PaymentRec made by the customer into the database
  • Insert/ update/delete a Driver as an Employee into the database
  • Insert/ update/delete a FloorStaff as an Employee into the database

The other Queries for the database can be as follows,-

  • Report based on confirmed and unconfirmed order in the last week.
  • List all unrecognized customers.
  • Display all menu items with size greater than 10 and less than equal to 20.
  • Display total ordered amount in the last week.
  • List all suppliers who supply the ingredient named cheese.
  • Find the amount of ingredient, Bread that will be requiring in the next week.
  • Report on currently available Discount program.
  • List all currently available FloorStaff.
  • Calculate and display the payment of Driver, Mr. John in the last shift.
  • Display details of Bank A/C information given by Floor Staff, Mr. Newton.
  • Report of total net income for the shop in the last month.

Business Rules:

  • The GourmetPizza shop offers one or more Menu items for customers.
  • One menu item can relate one or many discount programs.
  • A menu item composed of several ingredients.
  • A customer can place 0 or more orders that are related to the GourmetPizza shop.
  • A customer's order can be two types; order by phone and order by WalkIn.
  • The Gourmet Pizza shop offers two types of service like Delivery and Pick up service.
  • One CRM (Customer Relationship Manager) manages order by phone call, verifies more than one customers as well as records one or more confirmed and unconfirmed order and unrecognized customers.
  • The CRM system must record its identification number with customer's phone number.
  • In case of Order (Phone), the call duration and termination call time is recorded along with customer's phone number and CRM's ID number.
  • In case of Order (Welkin), the customer's name is only recorded.
  • A new or old customer can offer more than one payment by card or cash.
  • A supplier can supply more than one ingredient as well as one particular ingredient can be supplied by different supplier.
  • A store Manager can manage more than one ingredient orders as well as one ingredient order is related to more than one ingredient.
  • The GourmetPizza maintains mainly two types of employees like FloorStaff and Driver for servicing.
  • The FloorStaff is paid as per shifting and payment rate/hour where shifting is measured by subtracting staffs' end date & time with start date & time.
  • The Driver is paid as per shifting and payment rate/order where shifting is measured by subtracting staffs' end date & time with start date & time.
  • Every employee must give their Bank details for their payment. The Bank details like Account number, Bank code and Bank name are stored in a separate entity like Bank.
  • A unique key (Primary key) is needed for each entity.
  • In case of maintaining ConfirmedOrder and UnConfirmOrder; the order's identification number (O_ID) is necessary as foreign key to check which orders are confirmed and un-confirmed.

Part 2: EER Model with data dictionary

EER Model:

The Enhanced Entity Relationship diagram has developed according to the various activities like order processing of offered items, employee management of Gourmet Pizza. This EER diagram is drawn in Ms-Visio 2007 software where standard UML notation is available.

References:

T. Connolly and C. Begg, Database Systems, (2004). A Practical Approach to Design, Implementation and Management, 4th Edition, Addison -Wesley.

Silberschatz, K. S. (2010). Database System Concepts. McGraw-Hill.

Attachment:- Assignment Files.rar

Reference no: EM131436908

Questions Cloud

Find the expected value of y : Find the expected value of Y when x = 150, E(Y | 150).- How much change in the dependent variable is expected when x increases by one unit? Justify your answer.
How many atoms of h would be in this sample : Consider a 6.41 mol sample ofC2H4. How many atoms of H would be in this sample?
Why does the ozone mixing ratio : Why does the ozone mixing ratio decline when the NO emission rate further increases in a 48 hour period?
Element comprising the ionic compounds : Balance the chemical reactions shown below and then write equilibrium expressions for each. All reactants and all products are in the gas phase.
Calculate and display the payment of driver : INFO6001: Database Management. The Enhanced Entity Relationship diagram has developed according to the various activities like order processing of offered items, employee management of Gourmet Pizza. This EER diagram is drawn in Ms-Visio 2007 soft..
Explain the basis of dealing with overheads that you propose : All direct labour is paid at the same hourly rate. A customer has asked the business to build a trailer for transporting a racing motorcycle to races. It is estimated that this will require materials and components that will cost £1,150.
Solution at the equivalence point : Calculate the pH at the equivalence point for the titration of a solution containing 150.0mg of ethylamine (C2H5NH2) with 0.1000 MHCl solution. The volume of the solution at the equivalence point is 250.0 mL. Kb for ethylamine is 4.7 × 10^(-4).
What is the address of the plant site : SEC 6080 : Select a System/Software Development Life Cycle (SDLC) model and methodology then apply this model and methodology to an Information Technology (IT) project. You can choose a project you have worked on while working or a project that ..
Provide a real example of an imf program to assist a country : MBA 603- Provide a real example of an IMF program to assist a country with a particular situation it has encountered. Explain the program in detail, including the IMF's objectives/anticipated outcomes.

Reviews

Write a Review

 

Database Management System Questions & Answers

  List all bookings during june 2015

Management want to know the usage of the hotel based on floors. Write a query that will show how may bookings have been made for each floor.

  Estimate the cost parameters from the given set of data

Estimate the cost parameters from the given set of data. Cost ¼ 3:8 * Size (KLOC) Estimate the cost parameters from the given set of data.

  Why this table not in first normal form (1nf) normalization

Why is this table NOT in First Normal Form (1NF) normalization? What can you do to put it in 1NF?

  Create the corresponding relational data model

Create the corresponding relational data model by implementing the database for myFlicks.com within the course's mySQL site, linked on the course's homepage within Blackboard. Be sure to populate your tables with dummy data, providing me with the..

  Write procedure to construct character frequency table

Write the procedure named Get_frequencies which constructs character frequency table. Input to procedure must be a pointer to the string, and pointer to array of 256 doublewords.

  What is the output when the following script is executed

Determine the answer (expected result) based on your reading of from text book: -  Just show the expected output when you run the syntax.

  Describe the market structures to which this rule applies

Mayfair Office Chairs, Inc. is a small firm in the office furniture industry. They have asked you to help them complete the limited data they have gathered in an effort to enable effective decision-making. Some work can be done using MS Excel but ..

  You were hired as an analyst to develop a new information

you were hired as an analyst to develop a new information system to automate the payroll transactions in a mid-size

  How databases help ensure that organizations

Explain how databases help ensure that organizations can maintain data integrity? Compare how the data in transactional databases differs from that in data warehouses?

  Select suitable statistical measure to compare consistency

Select an appropriate statistical measure to compare consistency of sales. Make the calculations and write a report. In your calculations, include the mean sales for each salesperson.

  Draw at a context diagram and a level-0 diagram

Draw at a context diagram and a level-0 diagram. In drawing these diagrams, if you discover that the narrative is incomplete, make up reasonable explanations to complete the story. Provide these extra explanations along with the diagrams.

  What is the best approach to conceptual database design

What is the best approach to conceptual database design? Why? Name and describe at least four reports the system should have. Explain their use. Who will use those reports?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd