6. Write a query to display product_id, product_desc, product_quantity_avail, quantity sold, quantity available and show inventory...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
6. Write a query to display product_id, product_desc, product_quantity_avail, quantity sold, quantity available and show inventory Status of products as below as per below condition: a. For Electronics and Computer categories, if sales till date is Zero then show 'No Sales in past, give discount to reduce inventory', if inventory quantity is less than 10% of quantity sold, show 'Low inventory, need to add inventory', if inventory quantity is less than 50% of quantity sold, show 'Medium inventory, need to add some inventory', if inventory quantity is more or equal to 50% of quantity sold, show 'Sufficient inventory' b. For Mobiles and Watches categories, if sales till date is Zero then show 'No Sales in past, give discount to reduce inventory, if inventory quantity is less than 20% of quantity sold, show 'Low inventory, need to add inventory, if inventory quantity is less than 60% of quantity sold, show 'Medium inventory, need to add some inventory, if inventory quantity is more or equal to 60% of quantity sold, show 'Sufficient inventory c. Rest of the categories, if sales till date is Zero then show 'No Sales in past, give discount to reduce inventory', if inventory quantity is less than 30% of quantity sold, show 'Low inventory, need to add inventory, if inventory quantity is less than 70% of quantity sold, show 'Medium inventory, need to add some inventory', if inventory quantity is more or equal to 70% of quantity sold, show 'Sufficient inventory' -- (USE SUB-QUERY) - [NOTE: TABLES to be used - PRODUCT, PRODUCT_CLASS, ORDER_HEADER] 6. Write a query to display product_id, product_desc, product_quantity_avail, quantity sold, quantity available and show inventory Status of products as below as per below condition: a. For Electronics and Computer categories, if sales till date is Zero then show 'No Sales in past, give discount to reduce inventory', if inventory quantity is less than 10% of quantity sold, show 'Low inventory, need to add inventory', if inventory quantity is less than 50% of quantity sold, show 'Medium inventory, need to add some inventory', if inventory quantity is more or equal to 50% of quantity sold, show 'Sufficient inventory' b. For Mobiles and Watches categories, if sales till date is Zero then show 'No Sales in past, give discount to reduce inventory, if inventory quantity is less than 20% of quantity sold, show 'Low inventory, need to add inventory, if inventory quantity is less than 60% of quantity sold, show 'Medium inventory, need to add some inventory, if inventory quantity is more or equal to 60% of quantity sold, show 'Sufficient inventory c. Rest of the categories, if sales till date is Zero then show 'No Sales in past, give discount to reduce inventory', if inventory quantity is less than 30% of quantity sold, show 'Low inventory, need to add inventory, if inventory quantity is less than 70% of quantity sold, show 'Medium inventory, need to add some inventory', if inventory quantity is more or equal to 70% of quantity sold, show 'Sufficient inventory' -- (USE SUB-QUERY) - [NOTE: TABLES to be used - PRODUCT, PRODUCT_CLASS, ORDER_HEADER]
Expert Answer:
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1285196145
11th edition
Authors: Carlos Coronel, Steven Morris
Posted Date:
Students also viewed these marketing questions
-
12. A Eurodollar loan is a(n): a. ECU-denominated loan issued by a U.S. bank. b. dollar-denominated loan payable to a European bank. c. ECU-denominated loan that is subject to banking regulations in...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
ConAir (CA) commercial airlines company requires you experience in database design and have approached you to assist in the design of their new airline database system. They urgently need to have...
-
Data obtained from asking the wrong questions at the wrong time or in the wrong place can lead to misleading summary statistics. Explain why the following collection procedures are likely to produce...
-
Chief executive officers (CEOs) and chief financial officers (CFOs) of publicly traded companies are required to personally certify that their companies' financial statements and other financial...
-
Some students investigated what size of quadrat they should use to assess the abundance of plant species in an old field ecosystem. They used quadrats of side 10, 25, 50, 75 and 100 cm and recorded...
-
The following information was taken from the records of Underwood Company at June 30, 2007: Requirement Prepare a multistep income statement for Underwood Company for the fiscal year ended June 30,...
-
Mrs. McTavish wants to establish an annual $5000 scholarship in memory of her husband. The first scholarship is to be awarded two years from now. If the funds can earn 6.25% compounded annually, what...
-
Teams can make products, provide services, negotiate deals, coordinate projects, offer advice and make decisions. Discuss on problems-solving teams. (5 marks) QUESTION 2 Communication is the process...
-
At the end of the day the clerk for Wales Variety Shop noticed an error in the amount of cash he should have. Total cash sales from the sales tape were $1,204, whereas the total cash in the register...
-
What transferable appears in the job ad?
-
what ways is FinTech innovation disrupting traditional banking models, and how are banks adapting to this technological evolution ?
-
Jake's Roof Repair provided the following data concerning its costs: Fixed Cost Cost per per Month Repair-Hour Wages and salaries $ 21,100 $ 15.00 Parts and supplies $ 7.60 Equipment depreciation $...
-
Are state content standards essential when planning a lesson? How are the state content standards related to the learning objectives? Provide examples of measurable learning objectives. What does it...
-
The formula for changing degrees Celcius to degrees Fahrenheit is F= (9C/5) + 32 Rearrange this formula to make C the subject.
-
Read the linked article re: increasing prices, and review the chart as well. Comment on where you think prices (in general) are headed and why?...
-
Solve by applying limits lim f(x) x 3 f(x)= -x+4x-1 x3 x-x-4 x>3
-
Some people argue that the internal control requirements of the Sarbanes-Oxley Act (SOX) put U.S. companies at a competitive disadvantage to companies outside the United States. Discuss the...
-
List the balance characteristics of the customers who have made purchases during the current invoice cyclethat is, for the customers who appear in the INVOICE table. The results of this query are...
-
Create the table that would result from applying the SELECT and PROJECT relational operators to the CHARTER table to return only the CHAR_TRIP, CHAR_PILOT, and CHAR_COPILOT attributes for charters...
-
In Chapter 4, you saw the creation of the Tiny College database design. That design reflected such business rules as a professor may advise many students and a professor may chair one department....
-
A spring-mass system has a natural period of \(0.21 \mathrm{~s}\). What will be the new period if the spring constant is (a) increased by \(50 \%\) and (b) decreased by \(50 \%\) ?
-
An industrial press is mounted on a rubber pad to isolate it from its foundation. If the rubber pad is compressed \(5 \mathrm{~mm}\) by the self weight of the press, find the natural frequency of the...
-
Three springs and a mass are attached to a rigid, weightless bar \(P Q\) as shown in Fig. 2.51. Find the natural frequency of vibration of the system. 0000 0000 k 12. 13 m + FIGURE 2.51 Rigid bar...
Study smarter with the SolutionInn App