Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Write these 2 queries by using My SQL workbench Query3. Write a query to list out the product name and the percentage discount on

Please Write these 2 queries by using My SQL workbench

Query3. Write a query to list out the product name and the percentage discount on each product. Provide the result with a % sign and order the results in the desc order of the discount.

Query4. Write a query to count the number of orders whose status is shipped for customers from France whose credit limit is greater than 100000.

relationship diagram below:

image text in transcribed

Payments checkNumber paymentDate amount customerNumber Offices officeCode city phone addressLine1 addressLine2 state country postalCode territory officeLocation Customers customerNumber customerName contactLastName contactFirstName phone addressLine1 addressLine2 city state postalCode country sales RepEmployee Number creditLimit customerLocation Employees employeeNumber lastName firstName extension email reports to job Title officeCode Product Lines productLine textDescription Orders order Number order Date required Date shipped Date status comments customerNumber + Order Details order Number productCode quantityOrdered priceEach orderLine Number Products productCode productName productScale productVendor productDescription quantity InStock buy Price MSRP productLine

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

Recommended Textbook for

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions