Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write SQL code that could be used from these five tables below 1. List the total number of parts ordered on each day. Rank your

Write SQL code that could be used from these five tables below
1. List the total number of parts ordered on each day. Rank your results in ascending order on
order date.
2. List the full name and mailing address of customers who placed an order on 04-AUG-2013. If
same customer has placed more than one order on this day, only show his/her information
once.
3. List the order date, order number, total quoted price for each order placed between 03-AUG-
2013 and 06-AUG-2013.
4. List the average commission rate (rename to AVG_RATE) and the highest total commission
(rename to MAX_COMMISSION) of sales representatives who sold SG class items.
5. List the warehouse number and the total number of orders from each warehouse.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
SELECT FRON ORDER LNE ORDER NUMBER PART NUMBER NUMBER ORDERED 21 05 22.95 4999

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

53. If MX(t) 1/(1t2), nd E(X) and V(X) by differentiating MX(t).

Answered: 1 week ago

Question

What are the APPROACHES TO HRM?

Answered: 1 week ago