Answered step by step
Verified Expert Solution
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
Downloadand extract the SQL Assessment folder from the zip folder provided under the Source Code section. All the necessary files are provided within this folder.
Open MySQL Workbench.
In MySQL Workbench open the FoodOrderAppDDL Commands.sql file provided in the Source code folder and execute this file to create the database and the tables in the database.
You can refer to the FoodOrderAppDatabase Design Document.pdf and FoodOrderAppER Diagram.pdf files provided in the source code to understand the design of the database.
Now open the FoodOrderAppInsert Commands.sql file in the MySQL workbench and execute it to insert the records in the tables.
Now open the SelectQueriessql file to write and execute the SQL queries as mentioned in the task below.
Then open the SelectQueriessql file to write and execute the SQLqueries as mentioned in the task below.
Problem Statement
Your task is as follows
Retrieve records SelectQueriessql file points each
Display all cuisine names.
Display description of'Cake'category.
Select all restaurants where restaurant names end with'Junction'.
Display details of all vegetarian food items.
Retrieve all menu items with food items that have a price equal to or less than $
Retrieve cartId having the maximum number of food items.
Retrieve all the shipping details where emailId contains'doe'.
Retrieve the order with the highest price.
Retrieve the most recently updated order.
How many total units of food items were purchased in orderId
Retrieve records Select Queriessql filepointseach
Retrieve number of food items for each cuisine
Retrieve category names in the order of highest to lowest noof food items
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.
Retrieve details of food items, including their name, vegetarian status,and cuisine name,for only those food items that are vegetarian.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started