Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please turn in only one SQL file (or a .txt file) and submit it to the Assignment Submission Folder assigned for the homework. Answer the
Please turn in only one SQL file (or a .txt file) and submit it to the Assignment Submission Folder assigned for the homework.
Answer the following questions. Make sure you use comments in your SQL file to clarify/show which SQL statement is the answer to which question. The questions are:
- Write a query to show payments that each customer has made so far. Show Customer name, check number, and payment date
- Write a query to show orders made by each customer has made so far. Show Customer name, Order date, Required date, and Shipped date.
- Write a query to show the office location of each employee. Show employee's first and last name, addressline1, state, country.
- Write a query to show the name of the products for each order.
- Write a query to show the orderNumber, product name, and quantity ordered.
- Write a query to show the product code, product name, and image of the product line (join products and productlines).
- Write a query to show the customer number, payment amount, and order number (join three tables; orders, customers, and payments).
- Write a query to show the order number, customer number, and customers' city.
Step 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