Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using mysql How many customers have placed an order? (Hint: count a customer one time if the customer has multiple orders) List the names (customer
using mysql
- How many customers have placed an order?
(Hint: count a customer one time if the customer has multiple orders)
- List the names (customer name, not contact names) of all customers who have placed an order.
(Hint: list a customer one time if the customer has multiple orders)
- List the names of all customers who have not placed an order.
(Hint: this is an anti-join
- List all customer orders where the order has not been Cancelled. Include the order number, order date, order status and customers name.
- List all customers names with each product that customer has ordered. Include customers who do not have an order. Include the product name of the item ordered. If a customer has ordered the same product multiple times, only list the product once for that customer.
(Hint: you will need to join 4 tables.)
off eCode VARCHAR(10) city: VARCHARS0) phone: VARCHAR(S0) addinessline l: VARCHAR(SO) orderlumber INTEGER orderNumber: INTEGER productCode: VARCHARC5) 9 orderOute DATETIME MALLINT comments: TEXT customer% mber INTEGER country: VARCHARSO) postalCode VARCHARIS) sales Repltmplyeeumber: INTEGER productcode: VARCHAR(25) productName: VARCHAR70 VARCHAR(10) 9 extension: VARCHARO) produenendor. VARCHAR(50) ARCHAR(SO) quastylaStock INTEGER 0 buy Price: DOUBLEStep 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