In SQL, create a query using the model below: Retrieve the Walnut raw materials
ID: 3874207 • Letter: I
Question
In SQL, create a query using the model below:
Retrieve the Walnut raw materials of size 12in X 10in (in various lengths) with material standard price greater than 700. Output the material name, material, size, material standard price, and a marked-up material retail price of 133% of the standard price. Sort in ascending order of material size.
FIGURE 2-22 Data model for Pine Valley Furniture Company in Microsoft Visio notation SALESPERSON TERRITOR SIN PK Salesperson ID Serves PK Territory ID Salesperson Name Salesperson Telephone Salesperson Fax Territory Name CUSTOMER PRODUCT LINE PK Customer ID PK Product Line ID Customer Name Customer Address Customer Postal Code Product Line Name Submits Includes ORDER PK Order ID Order Date DUC ORDER LINE PK Product ID Product Description Product Finish Product Standard Price Ordered Quantity VENDOR USES PRODUCED IN PK Vendor ID Vendor Name Vendor Address Goes Into Quantity RAW MATERIAL WORK CENTER PK Material ID PK Work Center ID Material Name Material Standard Cost Unit Of Measure Work Center Location Supply Unit Price ls Supervised By EMPLOYEE WORKS IN SupervisesPEmployee ID HAS SKILL SKILL Employee Name Employee Address PK SkillExplanation / Answer
SELECT MaterialName, UnitOfMeasure AS MaterialSize, MaterialStandardCost
AND ROUND(1.33 * MaterialStandardCost) AS MaterialRetailPrice
FROM RAW_Materaial
WHERE MaterialName = 'Walnut' and UnitOfMeasure = '12in X 10 in'
AND MaterialStandardCost >700
ORDER BY UnitOfMeasure.
--Note:
Enter values of UnitOfMeasure(MaterialSize) based on the data in the database
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.