Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 0 . Display the average inventory for each product ID . 1 1 . Display state in a sequential order in a Location Table.
Display the average inventory for each product ID Display state in a sequential order in a Location Table. Display the average budget of the Product where the average budget
margin should be greater than What is the total sales done on date
Display the average total expense of each product ID on an individual date. Display the table with the following attributes such as date, productID, producttype, product, sales, profit, state, areacode. Display the rank without any gap to show the sales wise rank. Find the state wise profit and sales. Find the state wise profit and sales along with the productname. If there is an increase in sales of calculate the increasedsales. Find the maximum profit along with the product ID and producttype. Create a stored procedure to fetch the result according to the product type
from Product Table. Write a query by creating a condition in which if the total expenses is less than
then it is a profit or else loss. Give the total weekly sales value with the date and product ID details. Use
rollup to pull the data in hierarchical order. Apply union and intersection operator on the tables which consist of
attribute area code. Create a userdefined function for the product table to fetch a particular
product type based upon the users preference. Change the product type from coffee to tea where product ID is and undo
it Display the date, product ID and sales where total expenses are
between to Delete the records in the Product Table for regular type. Display the ASCII value of the fifth character from the columnProduct
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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