We are looking for assistance completing a query comparing in stock and on order raw material and match to it's production demand. SQL 2019
Question
We are looking for assistance completing a query comparing in stock and on order raw material and match to it's production demand. SQL 2019
Solution
Sure, I can help you with that. To complete the query comparing in stock and on order raw material and matching it to its production demand, you can follow these steps:
-
Start by identifying the tables involved in the query. You will need a table for raw materials, a table for stock, a table for orders, and a table for production demand.
-
Determine the common fields between these tables that can be used to join them. For example, you might have a "material_id" field in the raw materials table that corresponds to a "material_id" field in the stock table and the orders table.
-
Write the SQL query to join the tables based on the common fields. You can use the JOIN keyword to combine the tables. For example:
SELECT * FROM raw_materials JOIN stock ON raw_materials.material_id = stock.material_id JOIN orders ON raw_materials.material_id = orders.material_id JOIN production_demand ON raw_materials.material_id = production_demand.material_id
-
Specify the columns you want to retrieve in the SELECT statement. You can choose to display specific columns from each table or use the wildcard (*) to retrieve all columns.
-
Add any additional conditions or filters to the WHERE clause if needed. For example, you might want to only retrieve records where the stock quantity is greater than zero.
-
Run the query and review the results. You should now have a comparison of in stock and on order raw material matched to its production demand.
Remember to adjust the table and column names in the query to match your specific database schema.
Similar Questions
Which statement would you use to query the database for the quantity and description of each item thatwas ordered before June 1, 1999, and whose price is less than 0.25 or greater than 10.00?
You are given the following information for the year ended 31 October 2019: Cost item Amount (Sh) Purchase of raw materials 112,000 Returns inwards 8,000 Decrease in stock of raw materials 8,000 Direct wages 42,000 Carriage outwards 4,000 Carriage inwards 3,000 Production overheads 27,000 Increase in work-in-progress 10,000 The value of factory cost of goods completed is Select one: a. Sh 202,000 b. Sh 174,000 c. Sh 183,000 d. Sh 182,000
The following data relates to the item of raw material:Unit cost of raw materialR30Usage per week50 unitsFixed ordering costR25 per orderVariable holding cost per annum, as a % of unit cost10%Number of weeks in a year48Required:Drag and drop the correct answer by filling in the missing information:Order quantity150200300480Number of orders blank blank blank blankAverage inventory blank blank blank blankANNUAL INVENTORY COSTSRRRROrdering costs blank blank blank blankHolding costs blank blank blank blankTOTAL blank blank blank blank EOQ level 400 280 225 150 75 110 650 100 600 305 845 200 10 8 5 38 450 32 290 140 300 16 240 625 220 125 12 720Previous activityAssessment 5Jump to...Next activityAssessment 7Contact us Follow us You are logged in as LINDA NXUMALO (Log out)Data retention summaryGet the mobile appGet the mobile app
The following data relates to the item of raw material:Unit cost of raw materialR30Usage per week50 unitsFixed ordering costR25 per orderVariable holding cost per annum, as a % of unit cost10%Number of weeks in a year48Required:Drag and drop the correct answer by filling in the missing information:Order quantity150 blank300480Number of orders blank blank blank blankAverage inventory blank blank blank blankANNUAL INVENTORY COSTSRRRROrdering costs blank blank blank blankHolding costs blank blank blank blankTOTAL blank blank blank blank EOQ level 400 280 225 150 75 110 650 100 600 305 845 200 10 8 5 38 450 32 290 140 300 16 240 625 220 125 12 720
33.3% complete A B C D E F Region Style Ship Date Units Price Cost1 East Tee 1/31/2018 12 11.04 6.422 East Golf 1/31/2018 12 13 7.253 East Fancy 1/31/2018 10 11.96 6.74 West Tee 1/31/2018 15 11.04 6.425 West Golf 1/31/2018 12 13 7.256 West Fancy 1/31/2018 10 11.96 6.7QuestionQ. In which section of the table would you find information about the retail sales price?A.Column E, Rows 3 through 6 onlyB.Column E, Rows 1 through 6C.Column F, Rows 1 through 6D.Column F, Rows 3 through 6 only
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.