Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this homework, you will work to run scripts in MySQL and write SQL Statements to answer the questions below. You will upload the MySQL

In this homework, you will work to run scripts in MySQL and write SQL Statements to answer the questions below. You will upload the MySQL file that contains the queries you write. Please follow the directions in order.

Query 1- Write an SQL query that shows the CustomerID, EmployeeID, and SaleDate for all sales made on and after 1/1/2014

Query 2- Write an SQL query that shows the ItemID, ItemDescription and PurchaseDate for Items that have an item cost of $500 and above and supplied by VendorID 9.

Query 3-Write an SQL query that shows all customer information for customers in the cities Redmond, Bellevue or Seattle.

Query 4Write an SQL query that shows ItemID and ItemDescription for items that have an item cost between $500 and $1000.

Query 5Write an SQL query that shows the SaleId and the total ItemPrice for each sales ID in the SALE_ITEM table

Query 6Write an SQL subquery that shows the CustomerLastname, CustomerFirstname, Email for customers who have made a SALE Subtotal of $10,000 and above..

Query 7Write an SQL query that shows the EmployeeID, EmployeeLastName, EmployeeFirstname, Employee Phone, CustomerId, SaleDate and Total. Please ensure to have the results sorted in ascending order by Employee Lastname

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_2

Step: 3

blur-text-image_3

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

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions

Question

+K2Cr2O7

Answered: 1 week ago