Using the output shown in Figure P7.12 as your guide, generate a list of customer purchases, including the subtotals for each of the invoice line numbers. The subtotal is a derived attribute calculated by multiplying LINE_UNITS by LINE_PRICE . Sort the output by customer code, invoice number, and product description. Be certain to use the column aliases as shown in the figure.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter6: Additional Database Objects
Section: Chapter Questions
Problem 6HOA: A new table has been requested to support tracking automated emails sent to customers. Create the...
icon
Related questions
Question
Problem 12
Using the output shown in Figure P7.12 as your guide, generate a list of customer purchases,
including the subtotals for each of the invoice line numbers. The subtotal is a derived attribute
calculated by multiplying LINE_UNITS by LINE_PRICE .Sort the output by customer code,
invoice number, and product description. Be certain to use the column aliases as shown in the
figure.
Cus CODE
INV NUMBER
P DESCRIPT
Units Bought
Unit Price
Subtotal
10011
1002
Rat-tail fie, 1/8-in. fine
2.00
4.99
9.98
10011
1004
Claw hammer
2.00
9.95
19.90
10011
1004
Rat-tail fie, 1/8-in. fine
3.00
4.99
14.97
10011
1008
Claw hammer
1.00
9.95
9.95
10011
1008
PVC pipe, 3.5-in, 8-ft
5.00
5.87
29.35
10011
1008
Steel matting, 48x1/6, 5" mesh
3.00
119.95
359.85
10012
1003
7.25-in. pwr. saw blade
5.00
14.99
74.95
10012
1003
B&D cordless drilI, 1/2-In.
1.00
38.95
38.95
10012
1003
Hrd. cloth, 1/4-in., 2x50
1.00
39.95
39.95
10014
1001
7.25-in. pwr. saw blade
1.00
14.99
14.99
Figure P7.12
Task
Transcribed Image Text:Problem 12 Using the output shown in Figure P7.12 as your guide, generate a list of customer purchases, including the subtotals for each of the invoice line numbers. The subtotal is a derived attribute calculated by multiplying LINE_UNITS by LINE_PRICE .Sort the output by customer code, invoice number, and product description. Be certain to use the column aliases as shown in the figure. Cus CODE INV NUMBER P DESCRIPT Units Bought Unit Price Subtotal 10011 1002 Rat-tail fie, 1/8-in. fine 2.00 4.99 9.98 10011 1004 Claw hammer 2.00 9.95 19.90 10011 1004 Rat-tail fie, 1/8-in. fine 3.00 4.99 14.97 10011 1008 Claw hammer 1.00 9.95 9.95 10011 1008 PVC pipe, 3.5-in, 8-ft 5.00 5.87 29.35 10011 1008 Steel matting, 48x1/6, 5" mesh 3.00 119.95 359.85 10012 1003 7.25-in. pwr. saw blade 5.00 14.99 74.95 10012 1003 B&D cordless drilI, 1/2-In. 1.00 38.95 38.95 10012 1003 Hrd. cloth, 1/4-in., 2x50 1.00 39.95 39.95 10014 1001 7.25-in. pwr. saw blade 1.00 14.99 14.99 Figure P7.12 Task
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Basic sql queries
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L