Question: Complete the following questions in the query using SQL Developer 1. The TOYS view is no longer necessary, try to delete it. Confirm the removal

Complete the following questions in the query using SQL Developer

1. The TOYS view is no longer necessary, try to delete it. Confirm the removal of TOYS view by using select view_name from user_view

2. For each order, list the order number and order date along with the number and name of the customer that placed the order.

3. Display item number and description for items that have not been ordered.

4. Display the customer number, customer name, order number, and order date for each order. Sort the results by order date by descending sequence.

5. For each order line, what is the amount of discount, and percent discount is given. Discount is based on the difference between price and quoted_price. Report order number, order date, discount amount, and discount percent. Percentage of discount is based on difference_ in_ price/price*100

6. For each order report order number, order date, and discount percent.

n

CUSTOMER CUSTOMER_NUM CUSTOMER_NAME STREET CITY STATE 1 POSTAL_CODE 11 BALANCE CREDIT_LIMIT REP_NUM EMPLOYEE EMPNUM EMPNAME E

REP 1 REP_NUM LAST_NAME FIRST_NAME 1 STREET II CITY STATE I POSTAL_CODE 1 COMMISSION IRATE SUPPLIERS SUPPNO NAME ADDRESS SUPP  

CUSTOMER m CUSTOMER_NUM CUSTOMER NAME STREET CITY I STATE O POSTAL_CODE I BALANCE I CREDIT LIMIT REP NUM EMPLOYEE I EMPNUM D EMPNAME D EMPPHONE INVENTORY O PARTNO DESCRIPTION I QONHAND ITEM O ITEM NUM I DESCRIPTION I ON HAND I CATEGORY I STOREHOUSE O PRICE e ORDER LINE ORDER_NUM O ITEM_NUM I NUM_ORDERED I QUOTED PRICE ORDERS ORDER NUM I ORDER DATE CUSTOMER MUM PCTABLE TAGNUM O COMPID EMPNUM LOCATION QUOTATIONS I SUPPNO PARTNO D DELIVERY TIME 5 QONORDER

Step by Step Solution

3.42 Rating (155 Votes )

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!