Refer the given table and answer the question that follow: TABLE PRODUCT Pro_ID P1220 P1222 P1223...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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) 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)
Expert Answer:
Answer rating: 100% (QA)
a SQL Query to display Product ID first 3 letters from the Product Name for the products with catego... View the full answer
Related Book For
Posted Date:
Students also viewed these computer network questions
-
The following information pertains to Amazon Co.'s defined benefit pension plan for 2023: Projected benefit obligation on Jan. 1, 2023.......... Interest income earned by the Pension Fund assets...
-
On the topic: Being Super-Reasonable: Explain this term in your own words. Give a personal example of being passive aggressive. Find a quotation from the textbook, How To Improve Your Interpersonal...
-
At present, assuming a company focuses on maximizing shareholder wealth as its major goal. The managing director thinks this single goal is inappropriate and asks his co-directors for their views on...
-
23 On January 1, 2021, a company had an existing deferred tax liability attributable to a temporary difference of $20,000. The tax rate at this time was 30%. During 2021, a new law was passed that...
-
A physical therapist wishes to learn whether an exercise program increases flexibility. She measures the flexibility (in inches) of 12 randomly selected subjects both before and after an intensive...
-
Blockett Company makes automobile sunshades and incurs the costs listed in the table below. Required: Use an X to categorize each of the following costs. You may have more than one X for eachitem....
-
Following are errors, frauds, or other circumstances that an auditor might encounter as a result of applying year end substantive tests to accounts receivable as of December 31, 1999: a. Sales...
-
At the beginning of last year, Diekow Productions, set direct labor standards of 20 hours at $15 per hour for each product produced. During the year, 20,500 direct labor hours were actually worked at...
-
How does the intended audience influence the writer's choice of words and use of language in a document? Think of a specific topic and two specific kinds of audiences. Then write a short example of...
-
a. Would you consider the presentation to be a multiple-step income statement or a single-step income statement? Comment. b. Does it appear that there is a 100% ownership in all consolidated...
-
Find a lesson plan or activity for increasing global understanding that might be appropriate 2. Identify the technologies, websites, and software you might use to support this lesson. If no...
-
Ghost, Inc., has no debt outstanding and a total market value of $240,000. Earnings before interest and taxes, EBIT, are projected to be $28,000 if economic conditions are normal. If there is strong...
-
QUESTIONS 1 . Can any KPI be measured? 2 . Does Exhibit I satisfy the necessity for a target for a KPI? 3 . For each of the KPIs identified in the previous case, establish what you con - sider to be...
-
Directions: In each of the scenarios below you will be tasked with identifying all of the forces on the object in bold. After identifying each force present you will draw a force diagram on the block...
-
The goal is to use the Capital Asset Pricing Model to calculate the cost of equity for Amazon.com on January 2, 2003, and on January 2, 2020. Instructions 1) Four sheets of data are available: a.the...
-
Utility functions for auto and public transit between two towns are: UAUTO= -0.160 -0.011 (TT)-0.024. (C) -0.008 (WT) UPT = -0.224 -0.011 (TT) -0.024. (C) -0.013 (WT) Mode COST (C) Auto 20.5 PT 3.75...
-
= Consider the following strategic situation. Agent 1 has three possible choices: A {5, 6, 7} and agent 2 has three possible choices: A = {4,5,6}. Let a and a2 be representative actions of 1 and 2....
-
Calculate the electrical conductivity of a fiber-reinforced polyethylene part that is reinforced with 20 vol % of continuous, aligned nickel fibers.
-
In the Social and Natural Sciences Journal (Vol. 6, 2012), the time x (in minutes) between two successive arrivals of buses was modeled using an exponential distribution with mean ( = 3.77. a. Give...
-
The complete model E(y) = 0 + 1x1 + 2x2 + 3x3 + 4x4 + was fitted to n = 20 data points, with SSE = 152.66. The independent variables x3 and x4 were dropped from the model, yielding SSE = 160.44. a....
-
What are the factors that allow a native Spanish-speaking person to understand and read English? A study published in the Bilingual Research Journal (Summer 2006) investigated the relationship of...
-
The comparative statements of financial position of Borra Services as at 30 June 2024 and 2025 and the statement of financial performance for the year ended 30 June 2025 are shown overleaf....
-
The financial statements for the business of Trinhs Nail Supplies for the past two years are presented below. Additional information 1. All purchases and sales of inventories are on credit. All...
-
The following comparative statements of financial position and statement of financial performance are for the business of Low Dollar Shop Pty Ltd. Additional information 1. All sales and purchases of...
Study smarter with the SolutionInn App