Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QI . Write a query to retrieve the top 1 0 order amounts from customers, the product information for those orders, and calculate the sum

QI. Write a query to retrieve the top 10 order amounts from customers, the product information for those orders, and calculate the sum of the order amounts.
Q2. Write a SQL query to find the category in which a customer ordered the most and calculate the total of that category.
Q3. Write an SQL query to get a list of orders placed by customers in Seattle and calculate the total amount of all orders.
Q4. Write a SQL query that lists the names of the vendor companies that provided the products and sorts them in order of total revenue if the revenue generated by the products taken by employees with the job title "Sales Representative" is more than $10,000. What is the total of all vendor sales?
Q5. The owner of Northwind Traders wants to know if his staff is deployed effectively. For example, he might assume that there are more employees in areas where there are more orders for goods, or that there are more employees in areas with high sales. You need to analyze the staffing status so that he can make a decision. You analyze the data in SQL and use the quantitative evidence from your analysis to form an opinion about the staffing.
Suppliers: Suppliers and vendors of Northwind
Customers: Customers who buy products from Northwind
Employees: Employee details of Northwind traders
Products: Product information
Shippers: The details of the shippers who ship the products from the traders to the end-customers
Orders and Order_Details: Sales Order transactions taking place between the customers & the company
image text in transcribed

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

50 Tips And Tricks For MongoDB Developers Get The Most Out Of Your Database

Authors: Kristina Chodorow

1st Edition

1449304613, 978-1449304614

More Books

Students also viewed these Databases questions