Investigate the importance of enforcing database

Assignment Help Other Subject
Reference no: EM133748106

Data Modelling and Database Development

Assessment Description:

Part A: Design and implement a relational database management system (RDBMS)

Consider the following Case Study (from AT2).
Foodservice Australia is the leading exhibition for the food industry in Australia. Foodservice Australia has just run in Sydney and was a huge success, connecting thousands of industry buyers with the latest food. Next year, the exhibition will be running in Melbourne. There will be over 450 chefs (exhibitors), both established and lesser known, and special events, including the Chef of the Year. The Event Organiser has decided to assign you the task of building an IT product for the upcoming event in 2025. The core of this product is a database that captures all the information the food exhibition needs to maintain.

Foodservice Australia keeps information about chefs, each represented by their name (first name, last name), address (street, suburb, state, postcode), phone number, and email. Chefs prepare and present various dishes, and a chef may prepare at least one dish. Each dish is described by a short descriptive title, cuisine (e.g. Italian, Chinese, Indian), ingredients used for preparation, and unit price, and is prepared by only one chef.

Dishes are exhibited and sold at different food stalls, each identified by a name and a location. A food stall exhibits one or more dishes however, a particular dish is presented at only one food stall. Furthermore, a food stall is managed by at least one food stall keeper. A food stall keeper has a name (first name, last name), address (street, suburb, state, postcode), phone number and email and manages only one food stall.

A customer has a name (first name, last name), address (street, suburb, state, postcode), phone number and email. A customer may place any number of dine-in orders and any number of take-away orders, however, each dine-in order and each take-away order is placed by only one customer. For each order, a quantity and an order date must be recorded. Additionally, a dine-in order has a time for preparation and a service charge, and a take-away order has a time for collection. Furthermore, a dish may be included in any number of dine-in orders, and any number of take-away orders. However, it is required that each dine-in order includes only one dish, and each take-away order includes only one dish.

Suppose you were hired by Foodservice Australia to create a database for the above Food Exhibition, which ran for 5 days from 01-12-2024 to 05-12-2024. The corresponding relational database schema is as follows.


Chef (chefID, chefFirstName, chefLastName, chefPhoneNumber, chefStreet, chefSuburb, chefState, chefPostCode, chefEmail)

FoodStall (foodStallID, foodStallName, foodStallLocation)

Customer (customerID, customerFirstName, customerLastName, customerPhoneNumber, customerStreet, customerSuburb, customerState, customerPostCode, customerEmail)

FoodStallKeeper (foodStallKeeperID, foodStallKeeperFirstName, foodStallKeeperLastName, foodStallKeeperPhoneNumber, foodStallKeeperStreet, foodStallKeeperSuburb, foodStallKeeperState, foodStallKeeperPostCode, foodStallKeeperEmail, foodStallID)

Dish (dishID, dishTitle, dishCuisine, dishDescription, dishIngredients, dishUnitPrice, chefID, foodStallID)

DineInOrder (dineInOrderID, dishID, customerID, quantity, orderDate, timeForPreparation, serviceCharge)

TakeAwayOrder (takeAwayOrderID, dishID, customerID, quantity, orderDate, timeForCollection)

Question 1. Create a MySQL database for the above relational database schema in MySQL Workbench (you may follow the Week 8 Tutorial to install MySQL and MySQL Workbench).
Write SQL statements to create the tables in the above relational database schema, with suitable data types for different fields, primary keys, and foreign keys.

Insert meaningful data into all the tables. Provide screenshots of all tables populated with data (SQL statements for inserting data into the tables are not required as answers).
Important: Make sure that you add enough data records to the tables such that the result (query output) is not an empty set for any of the questions below.

Question 2. For each of the questions below, write the SQL statement and provide a screenshot of the result (query output).

List all the Chefs in a specific suburb of your choice (e.g., Clayton).

List the DineInOrder IDs that included Dishes belonging to a specific cuisine of your choice (e.g., Italian).
List the Food Stall Keepers (foodStallKeeperID, foodStallKeeperFirstName and foodStallKeeperLastName concatenated as foodStallKeeperFullName) who managed a Food Stall that offered a dish of a specific cuisine of your choice (e.g., Italian).

List the customers (customerID, customerFirstName and customerLastName concatenated as customerFullName) along with the number of dine-in orders they placed, naming the field as NumberOfDineInOrders. Note, NumberOfDineInOrders = 0 if a customer did not place any order for dine-in.

List the customers (customerID, customerFirstName and customerLastName concatenated as customerFullName) along with the number of dine-in orders and take-away orders they placed, naming the fields as NumberOfDineInOrders and NumberOfTakeAwayOrders, respectively.

List the chefs (chefID, chefFirstName, chefLastName) who prepared more than one dish, along with the number of Dishes made, naming the field as NumberOfDishes. Order the list from the greatest NumberOfDishes to the least. Add a secondary sort to order the list by the chefFirstName.

Which dishes were ordered more than once for take-away during the period from the second day to the fourth day of the exhibition? Show the Dish ID, Dish title, and the number of times it was ordered for take-away, naming the field as NumberOfOrders.

List the dishes (dishID, dishTitle) that did not have any orders.

List the Food Stalls (foodStallID and foodStallName), along with the total sales from take-away orders, naming the field as TotalTakeAwayOrderSales. Note that the quantity of dishes and unit price for each dish are provided.

Part B:

Critically analyze and investigate the importance of enforcing database integrity features for the above case study and write a report of 1500 words presenting your analysis and recommendations.

Include an Introduction, Body, Conclusion, and References. Organize the Body with proper sections and subsections as needed.

Reference no: EM133748106

Questions Cloud

How would you go about investigating crime sprees : How would you go about investigating crime sprees and crime series? What would be similar and what would be different in your approach?
Determine a victims position during a crime : A forensic scientist is trying to determine a victim's position during a crime. What could she deduce from the size and shape of the blood drops?
Did is cause the public to distrust the verdict : Did it help to protect the jurors? Did it help to limit the circus like atmosphere surrounding the trial? Did is cause the public to distrust the verdict?
Which are crimes commonly associated with finance : This week we are looking at white collar crimes, which are crimes commonly associated with finance or the government.
Investigate the importance of enforcing database : Critically analyze and investigate the importance of enforcing database integrity features for the above case study and write a report
Context of criminal profiling as a product of teamwork : What does this signify in the context of "Criminal Profiling" as a product of teamwork?
Personal philosophy of nursing : As part of your entry into nursing school, we want you to reflect on your personal philosophy of nursing.
Define anorexia nervosa and bulimia nervosa : Define anorexia nervosa, bulimia nervosa, and binge-eating disorder. Describe how diet is related to cancer development.
Define genocide is inclusive of acts that could be genocide : Do you believe the list made by the United Nations Convention to define genocide is inclusive of all acts that could be genocide?

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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