Question: 4:49 LTE Ims.devry.edu Problem 1 Write a query to count the number of invoices. Problem 2 Generate a listing of all purchases made by

4:49\ LTE\ \ Ims.devry.edu\ Problem 1\ Write a query to count the number of invoices.\ Problem 2\ Generate a listing of all purchases made by the customers, using the output shown in the following as your guide. Sort the results by customer code, invoice number, and product description. You will need to join INVOICE, LINE, PRODUCT\ \\\\table[[CUS_CODE,INV_NUMBER,INV_DATE,P_DESCRIPT,LINE_UNITS,LINE_PRICE],[10011,1002,2018-01-16 00:00:00,Rat-tail file,

(1)/(8)

-in. fine,2.00,4.99],[10011,1004,2018-01-17 00:00:00,Claw hammer,2.00,9.95],[10011,1004,2018-01-17 00:00:00,Rat-tail file,

(1)/(8)

-in, fine,3.00,4.99],[10011,1008,2018-01-17 00:00:00,Claw hammer,1.00,9.95],[10011,1008,2018-01-17 00:00:00,PVC pipe, 3.5-in., 8-ft,5.00,5.87],[10011,1008,2018-01-17 00:00:00,Steel matting,

4^(')\\\\times 8^(')\\\\times (1)/(6^('')),5^('')

mesh,3.00,119.95],[10012,1003,2018-01-16 00:00:00,7.25-in. pwr. saw blade,5.00,14.99],[10012,1003,2018-01-16 00:00:00,B&D cordless drill, 1/2-in.,1.00,38.95],[10012,1003,2018-01-16 00:00:00,Hrd. cloth, 1/4-in.,

2\\\\times 50

,1.00,39.95],[10014,1001,2018-01-16 00:00:00,7.25-in. pwr. saw blade,1.00,14.99]]\ Problem 3\ Create a query to produce the total purchase per invoice, generating the results shown in the following Figure, sorted by invoice number. The invoice total is the sum of the product purchases in the LINE that corresponds to the INVOICE.\ \\\\table[[INV_NUMBER,Invoice Total],[1001,24.94],[1002,9.98],[1003,153.85],[1004,34.87],[1005,70.44],[1006,397.83],[1007,34.97],[1008,399.15]]\ Problem 4\ List the balances of customers who have made purchases during the current invoice cycle - that is, for the customers who appear in the INVOICE table. Sort the results by customer code, as shown in the following Figure. Note: you will need to use the DISTINCT keyword and join the INVOICE and CUSTOMER tables\ \\\\table[[CUS_CODE,CUS_BALANCE],[10011,0.00],[10012,345.86],[10014,0.00],[10015,0.00],[10018,216.55]]\ Problem 5\ Create a query to find the balance characteristics for all customers (ie sum, min, max, and average). The results of this query are shown

 4:49\ LTE\ \ Ims.devry.edu\ Problem 1\ Write a query to count

Problem 2 Generate a listing of all purchases made by the customers, using the output shown in the following as your guide. Sort the results by customer code, invoice number, and product description. You will need to join INVOICE, LINE, PRODUCT Problem 3 Create a query to produce the total purchase per invoice, generating the results shown in the following Figure, sorted by invoice number. The invoice total is the sum of the product purchases in the LINE that corresponds to the INVOICE. Problem 4 List the balances of customers who have made purchases during the current invoice cycle - that is, for the customers who appear in the INVOICE table. Sort the results by customer code, as shown in the following Figure. Note: you will need to use the DISTINCT keyword and join the INVOICE and CUSTOMER tables Problem 5 Create a query to find the balance characteristics for all customers (ie sum, min, max, and average). The results of this query are shown

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!