Demonstrate use of sql to perform olap operations

Assignment Help PL-SQL Programming
Reference no: EM131451623

Objectives:

a. Demonstrate use of SQL to perform OLAP operations; Estimated time to complete: 40 min reading +45-50 min.

solve queries Points:

Tasks:

In this assignment we are going to use the SQL ROLLUP and CUBE operators to generate and store a three dimensional cube with hierarchies based on the tables in the database given by the description below:

Tb_Supplier(Supp_ID, Name, City, State)
Tb_Consumer(Con_ID, Name, City, State)
Tb_Product(Prod_ID, Name, Product_Category, Product_Line, Product_Packaging)
Tb_Offers(Supp_ID, Prod_ID, Quantity, Price)
Tb_Requests(Con_ID, Prod_ID, Quantity, Price)
Tb_Transactions(Tran_ID, Supp_ID, Con_ID, Prod_ID, Quantity, Price)

Given the Tb_Transactions_Cube stored above solve the following queries:

1) Aggregates by combinations of supplier name and product name?

2) Aggregates by supplier states?

3) Number of transactions between supplier-city-consumer-city pairs?

4) Name of each product sold in Wisconsin and quantity of sales for the product?

5) Quantity of sales aggregated by product and supplier state?

6) Quantity of computer sales aggregated by suppliers in Wisconsin?

7) Quantity of auto sales by each supplier from Wisconsin to consumers in Illinois?

8) Quantity of auto sales by each supplier in Madison to consumers in Illinois?

9) Quantity of each product sold by supplier Bernstein to consumers in Chicago?

10) Quantity of milk sold by supplier Bernstein to consumers in Chicago?

11) For each product list quantity sold by suppliers in Madison to consumers in Chicago versus quantity sold by suppliers in Chicago to consumers in Madison (result columns will be: product name, quantity Madison_Chicago, quantity Chicago_Madison?

Return:
Please post your solutions to the queries above in properly formatted SQL syntax (each SQL clause on its own line and with capitalized keyword and operators) in the D2L dropbox created for this assignment.

Attachment:- DemarestTables.xlsx

Attachment:- Instructions.rar

Verified Expert

This assignment describes about the execution of OLAP Operations in SQL. An OLAP cube is a data structure that overcomes the limitations of relational databases by providing rapid analysis of data. ROLLUP and CUBE are SQL extension operators one would place in the GROUP BY clause of an SQL SELECT statement in order to compute and add aggregates to the result set returned by the SELECT statement.

Reference no: EM131451623

Questions Cloud

Determine the price elasticity of the products : To determine the price elasticity of the products and how to manipulate them so as to meet the need of the customers in the market and manage competition
How much should you invest in the risk-free security : If you want the portfolio to have an expected return equal to that of the market, how much should you invest in the risk-free security?
Describe the security features within the application : HIM 220 : Determine the necessary requirements of applications to ensure they adhere to applicable regulations. Explain each requirement.
Define relationship between job satisfaction and absenteeism : What is the relationship between job satisfaction and absenteeism? Job satisfaction and turnover? Which is the stronger relationship?
Demonstrate use of sql to perform olap operations : DS 715 - Assignment - Demonstrate use of SQL to perform OLAP operations; Estimated time to complete: 40 min reading +45-50 min.
What is your total return to date on this investment : What is your total return to date on this investment?
Who would be covered by the given change in legislation : Who would be covered by this change in legislation? Do you think you would want to take advantage of this extension, if you were a new parent? Explain.
Justify the statement do you agree or disagree from comment : "Thirty-five years ago, young employees we hired were ambitious, conscientious, hard-working, and honest. Today's young employees don't have the same values."
Considering buying machine-what is the nal of the lease : Super Sonics Entertainment is considering buying a machine that costs $610,000. What is the NAL of the lease?

Reviews

inf1451623

4/18/2017 5:42:16 AM

Hi, I simply need to state thank you SO especially for your offer assistance! I got full marks on the task, and I have been prescribing your administrations to a couple people as of now. I am so cheerful I ran over your site, and I will utilize your administrations again sooner rather than later! Much thanks to you once more, to everything - your work is eminent!

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd