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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 12:00, trippie4life
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, solizpaco7124
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
image
Computers and Technology, 24.06.2019 19:20, maehardy4134
Kiesha has a worksheet with a range of cells using the following columns: name, score, group, study group, and date. kiesha needs to sort the worksheet on the date field. which option she use to most efficiently complete this task ? a use the cut and paste option to reorganize the data to fit that order b use the filter function to organize the data based on the date c use the order function to organize the data based on the date d use the sort function to organize the data based on date order
Answers: 3
image
Computers and Technology, 25.06.2019 05:00, adajadavis2843
Which of the following statements best deceive the relationship between carrying capacity and population size
Answers: 1
You know the right answer?
Part C(2 points)/* Bill of Materials -Recursive *//* The following code retrieves the components req...

Questions in other subjects:

Konu
Geography, 17.12.2019 05:31