Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Introduction This week you will be retrieving the records from the Food Order App database. All the create and insert operations should be performed using

Introduction
This week you will be retrieving the records from the Food Order App database. All the create and insert operations should be performed using MySQL. Before proceeding with the task make sure you have the Food Order App database created with enough records in the database. You can follow the below mentioned steps to create the database and insert records in the database-
1. Downloadand extract the SQL3 Assessment folder from the zip folder provided under the Source Code section. All the necessary files are provided within this folder.
2.Open MySQL Workbench.
3. In MySQL Workbench , open the FoodOrderApp_DDL Commands.sql file provided in the Source code folder and execute this file to create the database and the tables in the database.
4. You can refer to the FoodOrderApp_Database- Design Document.pdf and FoodOrderApp_ER Diagram.pdf files provided in the source code to understand the design of the database.
5. Now open the FoodOrderApp_Insert Commands.sql file in the MySQL workbench and execute it to insert the records in the tables.
6. Now open the SelectQueries1.sql file to write and execute the SQL queries as mentioned in the task1 below.
7. Then open the SelectQueries2.sql file to write and execute the SQLqueries as mentioned in the task2 below.
Problem Statement
Your task is as follows-
1.Retrieve records (SelectQueries1.sql file)(3 points each)
1.1. Display all cuisine names.
1.2. Display description of'Cake'category.
1.3. Select all restaurants where restaurant names end with'Junction'.
1.4. Display details of all vegetarian food items.
1.5. Retrieve all menu items with food items that have a price equal to or less than $10.
1.6.Retrieve cartId having the maximum number of food items.
1.7.Retrieve all the shipping details where emailId contains'doe'.
1.8. Retrieve the order with the highest price.
1.9. Retrieve the most recently updated order.
1.10. How many total units of food items were purchased in orderId 1?
2.Retrieve records (Select Queries2.sql file)(6pointseach)
2.1. Retrieve number of food items for each cuisine
2.2. Retrieve category names in the order of highest to lowest no.of food items
2.3.Retrievecuisine name as Cuisine Name, food item name as name Food Item Name and description as Description of all the food items belonging to'Italian'cuisine.
2.4. Retrieve details of food items, including their name, vegetarian status,and cuisine name,for only those food items that are vegetarian.
2.5. Retrieve the details of users who have items in their cart along with the total order amount.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

3. Define the attributions we use to explain behavior

Answered: 1 week ago