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

Write SQL code that could be used from these seven 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.

6. List the full name of the sales representatives, order number, and total quoted price for each

order (rename to TQP) handled by each sales representative.

7. List the part number and part description of parts with units on hand higher than the average

units on hand across all parts.

Write SQL code that could be used from these seven 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.

Table: PART Column Data Type gth Precision Scale Nullable PART NUMBER PART DESCRIPTION UNITS ON HAND ITEM CLASS WAREHOUSE NUMBERNUMBER UNIT PRICE VARCHAR2 VARCHAR2 NUMBER CHAR No - Yes Yes - Yes Yes 2 Yes 12 NUMBE 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!