We need to know total costs for our quantity on order. We will do this by taking the quantity on order and multiplying it by the price of each individual item. Please gather the SKU, warehouse ID, quantity that we have on order, price and then include a column for the total that the quantity cost and name this column Total Cost. Have the output order results by the warehouse ID. Be sure that the SKUS are unique within each Warehouse. I am looking for a calculated field here. The "total that the quantity cost" will be a calculated field. Remember, a calculated field looks like a little math equation inside the select statement. An example of a calculated field in a select might be SELECT QuantityOnOrder * QuantityOnHand AS Total

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I don't know how to do this sql.Can someone help me please?

Oing
CATALOG SKU 2013
INVENTORY
ORDERITEM
Catalo SKU- SKU Description
Department - CatalogP - DateOnWeb -
Warehous SKU - SKU Desoription
-QuantityOnH-QuantityOn0
250
Quantity
100200
101100
101100
Price
ExtendedP-
300
OrderNumt- SKU
-
20130001
100100 Sed. Scuba Tark, Yellow Water Sports
100500 Sed. Scuba Tark, Light Geen Water Sports
100600 Sed. Souba Tank, Dark Green Water Sports
101100 Dive Mask, Small Clear
101200 Dive Mask, Med Clear
201000 Hall-dome Tent
23
112013
100 100100 Std Souba Tank, Yellov
3000
300
20130002
20130003
NULL
7112013
712013
100 100200 Sid Scuba Tank, Magenta
100 101100 Dive Mask, Smal Clear
100
100
200
30
500
2000
3000
50
50
200
100
NULL
2.
20130004
Water Sports
24
112013
101200 Dive Mask, Med Clear
100
500
100
2000
3000
1000
101200
101200
50
100
V12013
V2013
20130005
201000 Hal-dome Tert
2
Water Sports
Camping
Camping
Climbing
Cimbing
24
1
50
300
50
300
20130006
20130007 202000 Hal-dome Tenx Vestibule
201000
202000
45
100 202000 Hal-dome Tert Vestibule
10
250
1
47
V12013
12013
130
100 301000 Lighe Fly Climbing Harness
100 302000 Looking Carabiner, Oval
200 100100 Std Souba Tank, Yellw
200 100200 Std Souba Tank, Magenta
200
300
1000
250
1000
130
20130008 301000 Light Fly Climbing Harness
20130009 302000 Locking Carabiner, Oval
76
78
V12013
100
50
RETAIL_ORDER
OrderNumt- StoreNumber
1000
- Storežip
10
- OrderMonth
98110 December
- OrderYear OrderTo
2014
75
75
500
CATALOG SKU 2014
-Department
Water Sports
101100 Dive Mask, Small Clear
445
CatalogP- DateOnWeb-
Catalo SKU - SKU Desoription
20140001
20140002 100300 Sed. Scuba Tank, Light Blue Water Sports
20140003 100400 Sed. Souba Tank, Dark Blue Water Sports
20140004
20140005
20140006 201000 Hal-dome Tert
20140007 202000 Hall-dome Tenk Vestibule
20140008 301000 Light Fly ClimbingHarness
20140009 302000 Locking Carabiner, Oval
200 101200 Dive Mask, Med Clear
200
200 202000 Hal-dome Tent Vestbule
50
500
2000
20
2335 December
2014
310
100100 Sed. Scuba Tank, Yellov
3000
23
23
112014
201000 Hal-dome Tent
10
1
250
10
98110 January
2015
480
V2014
250
SKU DATA
- Department
Water Sports
Water Sports
Water Sports
Water Sports
Camping
Сamping
Climbing
Clmbing
200 301000 Light Fly Climbing Harness
200 302000 Looking Carabiner, Oval
100100 Sid Souba Tank, Yellov
100200 Sid. Souba Tank, Magenta
101100 Dive Mask, Small Clear
NULL
8/1/2014
250
1250
250
101100 Dive Mask, Small Clear
Water Sports
Water Sports
V12014
- SKU Desoription
100100 Std. Souba Tank, Yelow
Buyer
Pete Hansen
Pete Hansen
26
SKU
101200 Dive Mask, Med Clear
26
V12014
300
100
100200 Std. Souba Tank, Magenta
101100 Dive Mask, Small Clear
Camping
Camping
Clmbing
Climbing
46
46
112014
300
300
100
300
100
200
Nancy Meyers
Nancy Meyers
Cindy Lo
Cindy Lo
Jerry Martin
Jerny Martin
V2014
77
112014
300
101200 Dive Mask, Med Clear
300 201000 Hal-dome Tent
300 202000 Half-dome Tent Vestibule
475
101200 Dive Mask, Med Clear
201000 Hal-dome Tent
202000 Half-dome Tent Vestibule
79
VW2014,
250
100
CATALOG SKU 2015
300
301000 Light Fly Climbing Harness
300 302000 Locking Carabiner, Oval
100100 Sid Souba Tank, Yellov
100200 Sid. Souba Tank, Magenta
101100 Dive Mask, Small Clear
250
301000 Light Fly Climbing Harness
302000 Locking Carabiner, Oval
Catalo SKU - SKU Description
20150001
20150002
20150003
- Department- CatalogP- DateOnWeb-
Water Sports
Water Sports
Water Sports
500
500
100100 Sed. Souba Tark, Yellov
100200 Sed. Scuba Tank, Magenta
101100 Dive Mask, Small Clear
23
V2015
400
200
23
27
112015
12015
400
400
250
450
250
WAREHOUSE
WarehouseSta- Manager
GA
Warehous WarehouseCity
20150004
20150005 201000 Hall-dome Tent
20150006 202000 Half-dome Tenk Vestibule
101200 Dve Mask, Med Clear
201000 Hal-dome Tent
400 202000 Half-dome Tent Vestibule
SquareFee
125000
100000
150000
101200 Dive Mask, Med Clear
Water Sports
27
112015
400
250
100 Atlanta
Dave Jones
Camping
Camping
20150007 203000 Half-dome Tent Vestibule- Wic Camping
Climbing
200 Chicago
300 Bangor
400 Seattle
S00 Sao Francisco
45
45
112015
W2015
400
250
200
IL
Lucille Smith
Bart Evans
Dale Rogers
Grace Jelferson
ME
NULL
4/1/2015
400
301000 Light Fly Climbing Harness
400 302000 Locking Carabiner, Oval
250
WA
130000
20150008
301000 Light Flu Climbing Harness
76
w2015
1000
CA
200000
Transcribed Image Text:Oing CATALOG SKU 2013 INVENTORY ORDERITEM Catalo SKU- SKU Description Department - CatalogP - DateOnWeb - Warehous SKU - SKU Desoription -QuantityOnH-QuantityOn0 250 Quantity 100200 101100 101100 Price ExtendedP- 300 OrderNumt- SKU - 20130001 100100 Sed. Scuba Tark, Yellow Water Sports 100500 Sed. Scuba Tark, Light Geen Water Sports 100600 Sed. Souba Tank, Dark Green Water Sports 101100 Dive Mask, Small Clear 101200 Dive Mask, Med Clear 201000 Hall-dome Tent 23 112013 100 100100 Std Souba Tank, Yellov 3000 300 20130002 20130003 NULL 7112013 712013 100 100200 Sid Scuba Tank, Magenta 100 101100 Dive Mask, Smal Clear 100 100 200 30 500 2000 3000 50 50 200 100 NULL 2. 20130004 Water Sports 24 112013 101200 Dive Mask, Med Clear 100 500 100 2000 3000 1000 101200 101200 50 100 V12013 V2013 20130005 201000 Hal-dome Tert 2 Water Sports Camping Camping Climbing Cimbing 24 1 50 300 50 300 20130006 20130007 202000 Hal-dome Tenx Vestibule 201000 202000 45 100 202000 Hal-dome Tert Vestibule 10 250 1 47 V12013 12013 130 100 301000 Lighe Fly Climbing Harness 100 302000 Looking Carabiner, Oval 200 100100 Std Souba Tank, Yellw 200 100200 Std Souba Tank, Magenta 200 300 1000 250 1000 130 20130008 301000 Light Fly Climbing Harness 20130009 302000 Locking Carabiner, Oval 76 78 V12013 100 50 RETAIL_ORDER OrderNumt- StoreNumber 1000 - Storežip 10 - OrderMonth 98110 December - OrderYear OrderTo 2014 75 75 500 CATALOG SKU 2014 -Department Water Sports 101100 Dive Mask, Small Clear 445 CatalogP- DateOnWeb- Catalo SKU - SKU Desoription 20140001 20140002 100300 Sed. Scuba Tank, Light Blue Water Sports 20140003 100400 Sed. Souba Tank, Dark Blue Water Sports 20140004 20140005 20140006 201000 Hal-dome Tert 20140007 202000 Hall-dome Tenk Vestibule 20140008 301000 Light Fly ClimbingHarness 20140009 302000 Locking Carabiner, Oval 200 101200 Dive Mask, Med Clear 200 200 202000 Hal-dome Tent Vestbule 50 500 2000 20 2335 December 2014 310 100100 Sed. Scuba Tank, Yellov 3000 23 23 112014 201000 Hal-dome Tent 10 1 250 10 98110 January 2015 480 V2014 250 SKU DATA - Department Water Sports Water Sports Water Sports Water Sports Camping Сamping Climbing Clmbing 200 301000 Light Fly Climbing Harness 200 302000 Looking Carabiner, Oval 100100 Sid Souba Tank, Yellov 100200 Sid. Souba Tank, Magenta 101100 Dive Mask, Small Clear NULL 8/1/2014 250 1250 250 101100 Dive Mask, Small Clear Water Sports Water Sports V12014 - SKU Desoription 100100 Std. Souba Tank, Yelow Buyer Pete Hansen Pete Hansen 26 SKU 101200 Dive Mask, Med Clear 26 V12014 300 100 100200 Std. Souba Tank, Magenta 101100 Dive Mask, Small Clear Camping Camping Clmbing Climbing 46 46 112014 300 300 100 300 100 200 Nancy Meyers Nancy Meyers Cindy Lo Cindy Lo Jerry Martin Jerny Martin V2014 77 112014 300 101200 Dive Mask, Med Clear 300 201000 Hal-dome Tent 300 202000 Half-dome Tent Vestibule 475 101200 Dive Mask, Med Clear 201000 Hal-dome Tent 202000 Half-dome Tent Vestibule 79 VW2014, 250 100 CATALOG SKU 2015 300 301000 Light Fly Climbing Harness 300 302000 Locking Carabiner, Oval 100100 Sid Souba Tank, Yellov 100200 Sid. Souba Tank, Magenta 101100 Dive Mask, Small Clear 250 301000 Light Fly Climbing Harness 302000 Locking Carabiner, Oval Catalo SKU - SKU Description 20150001 20150002 20150003 - Department- CatalogP- DateOnWeb- Water Sports Water Sports Water Sports 500 500 100100 Sed. Souba Tark, Yellov 100200 Sed. Scuba Tank, Magenta 101100 Dive Mask, Small Clear 23 V2015 400 200 23 27 112015 12015 400 400 250 450 250 WAREHOUSE WarehouseSta- Manager GA Warehous WarehouseCity 20150004 20150005 201000 Hall-dome Tent 20150006 202000 Half-dome Tenk Vestibule 101200 Dve Mask, Med Clear 201000 Hal-dome Tent 400 202000 Half-dome Tent Vestibule SquareFee 125000 100000 150000 101200 Dive Mask, Med Clear Water Sports 27 112015 400 250 100 Atlanta Dave Jones Camping Camping 20150007 203000 Half-dome Tent Vestibule- Wic Camping Climbing 200 Chicago 300 Bangor 400 Seattle S00 Sao Francisco 45 45 112015 W2015 400 250 200 IL Lucille Smith Bart Evans Dale Rogers Grace Jelferson ME NULL 4/1/2015 400 301000 Light Fly Climbing Harness 400 302000 Locking Carabiner, Oval 250 WA 130000 20150008 301000 Light Flu Climbing Harness 76 w2015 1000 CA 200000
We need to know total costs for our quantity on order. We will do this by taking the quantity on order and
multiplying it by the price of each individual item. Please gather the SKU, warehouse ID, quantity that we have on
order, price and then include a column for the total that the quantity cost and name this column Total Cost. Have
the output order results by the warehouse ID. Be sure that the SKUS are unique within each Warehouse. I am looking
for a calculated field here. The "total that the quantity cost" will be a calculated field. Remember, a calculated field looks
like a little math equation inside the select statement. An example of a calculated field in a select might be SELECT
QuantityOnOrder * QuantityOnHand AS Total
Transcribed Image Text:We need to know total costs for our quantity on order. We will do this by taking the quantity on order and multiplying it by the price of each individual item. Please gather the SKU, warehouse ID, quantity that we have on order, price and then include a column for the total that the quantity cost and name this column Total Cost. Have the output order results by the warehouse ID. Be sure that the SKUS are unique within each Warehouse. I am looking for a calculated field here. The "total that the quantity cost" will be a calculated field. Remember, a calculated field looks like a little math equation inside the select statement. An example of a calculated field in a select might be SELECT QuantityOnOrder * QuantityOnHand AS Total
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
SQL Query
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education