Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Refer the given table and answer the question that follow: TABLE PRODUCT Pro_ID P1220 P1222 P1223 P1224 Pro_Name BUTTER MILK MUFFINS CAKE Category DAIRY
Refer the given table and answer the question that follow: TABLE PRODUCT Pro_ID P1220 P1222 P1223 P1224 Pro_Name BUTTER MILK MUFFINS CAKE Category DAIRY DAIRY BREAD BREAD Price 50.555 20.500 35.750 25.255 Sup_ID S1024 $1024 S2012 S2055 a. Write an SQL Query to display Product ID first 3 letters from the Product Name for the products with category DIARY and BREAD. (2.5 Marks) b. Write an SQL Query to calculate and display PRODUCT NAME PRICE after multiplying the price by 2 with an alias name NEWPRICE for those products where the name starts with letter M and Price more than 30. (2.5 Marks) c. Write an SQL Query to display unique Categories, round the price to 2 decimal places and display it in the ascending order of Price. (2.5 Marks) d. Write an SQL query to display Category in small letters, highest price for each category of products. (2.5 Marks)
Step by Step Solution
★★★★★
3.36 Rating (152 Votes )
There are 3 Steps involved in it
Step: 1
a SQL Query to display Product ID first 3 letters from the Product Name for the products with catego...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started