Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedusing mysql

  1. How many customers have placed an order?

(Hint: count a customer one time if the customer has multiple orders)

  1. 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)

  1. List the names of all customers who have not placed an order.

(Hint: this is an anti-join

  1. List all customer orders where the order has not been Cancelled. Include the order number, order date, order status and customers name.
  2. 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: DOUBLE

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

CL I P COL Astro- L(1-cas0) Lsing *A=2 L sin(0/2)

Answered: 1 week ago