subject

Part C(2 points)/* Bill of Materials -Recursive *//* The following code retrieves the components required for manufacturingthe "Mountain-500 Black, 48" (Product 992). Use it as the starter codefor calculating the material cost reduction if the component 815is manufactured internally at the level 1 instead of purchasing itfor use at the level 0.Use the list price of a component asthe material cost for the component. WITH Parts(AssemblyID, ComponentID, PerAssemblyQty, EndDate, ComponentLevel) AS
(
SELECT b. ProductAssemblyID, b.ComponentID, b.PerAssemblyQty,
b. EndDate,0 AS ComponentLevel
FROM Production. BillOfMaterials AS b
WHERE b. ProductAssemblyID =992 AND b. EndDate IS NULL

UNION ALL

SELECT bom. ProductAssemblyID, bom. ComponentID, p. PerAssemblyQty,
bom. EndDate, ComponentLevel +1
FROM Production. BillOfMaterials AS bom
INNER JOIN Parts AS p
ON bom. ProductAssemblyID =p. ComponentID AND bom. EndDate IS NULL
)
SELECT AssemblyID, ComponentID, Name, PerAssemblyQty, ComponentLevel
FROM Parts AS p
INNER JOIN Production. Product AS pr
ON p. ComponentID =pr. ProductID
ORDER BY ComponentLevel, AssemblyID, ComponentID;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 24.06.2019 01:00
Me if you do then you get 10 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
You know the right answer?
Part C(2 points)/* Bill of Materials -Recursive *//* The following code retrieves the components req...
Questions
question
Mathematics, 24.02.2020 23:58
question
Mathematics, 24.02.2020 23:58
Questions on the website: 13722361