Question: Consider the table structure : Orders Order_id pk Order_type enum(Food,Bus,Recharge,Cabs) [ Means category] Order_date Company_id enum(Ola,Uber,Ezpay,Redbus,Swiggy,Zomato) Customer_id Order_value Order_status enum(Pending,Cancelled,Success,Wait On Merchant) Discount Q1. Get

Consider the table structure :


Orders
Order_id pk
Order_type enum(‘Food’,’Bus’,’Recharge’,’Cabs’) [ Means category]
Order_date

Company_id enum(‘Ola’,’Uber’,’Ezpay’,’Redbus’,’Swiggy’,’Zomato’)
Customer_id
Order_value
Order_status enum(‘Pending’,’Cancelled’,’Success’,’Wait On Merchant’)
Discount

Q1. Get total orders and total order value per day for the month of March 2018 ? 

Q2. Get Total orders, order value per day for the month of March 2018 for each order type ? 

. Get average order value for the month of March 2018 for all successful orders for each category?


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Consider the table structure Orders Orderid pk Ordertype enumFoodBusRechargeCabs Means category Orde... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!