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, 22.06.2019 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
question
Computers and Technology, 23.06.2019 12:50
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
question
Computers and Technology, 24.06.2019 00:50
3. what is the output of the following statements? temporary object1; temporary object2("rectangle", 8.5, 5); temporary object3("circle", 6, 0); temporary object4("cylinder", 6, 3.5); cout < < fixed < < showpoint < < setprecision(2); object1.print(); object2.print(); object3.print(); object4.print(); object1.set("sphere", 4.5, 0); object1.print();
Answers: 1
You know the right answer?
Part C(2 points)/* Bill of Materials -Recursive *//* The following code retrieves the components req...
Questions
question
Chemistry, 12.08.2020 07:01