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.
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.
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...
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F8120ed19-f221-4b0d-ab89-09bc837d2fe2%2F85d34cac-4aed-4cf6-83d0-eecc1e65e21a%2Fmcfiw8oh_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![A Guide to SQL](https://www.bartleby.com/isbn_cover_images/9781111527273/9781111527273_smallCoverImage.gif)
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![A Guide to SQL](https://www.bartleby.com/isbn_cover_images/9781111527273/9781111527273_smallCoverImage.gif)
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L