Question
Summarize these pages in your own style and you have to include in your report some figures highlighting the relation between these operations.
Basic AGGREGATE functions (Revision) COUNT: returns the number of tuples, which meet the specified condition: SELECT COUNT(DI
SQL Extensions to support OLAP queries: advanced AGGREGATE functions I. CUBE Extension to the GROUP BY clause to generate inf
CUBE: query and output Cube gets input in a form of a set of attribute names to be grouped and it will produce subtotals for
ROLLUP: query ROLLUP enables a SELECT statement to calculate multiple levels of subtotals across a specified group of dimensi
Partial ROLLUP You can also roll up so that some of the sub-totals will be included. This partial rollup uses the following s
GROUPING: Function It is important to differentiate the aggregate NULL values that appear in the output when using CUBE or RO
SQL Extensions to support OLAP queries: Advanced ANALYSIS functions. 1. RANK Computes the rank of a record compared to other
RANK Per-Group Using PARTITION BY The previous example shows RANK without partitioning the groups, which is often used when o
Top N RANKING Using the RANK function, we can display Top N ranking based on a certain ranking attribute. You can easily obta
CUMULATIVE DISTRIBUTION-CUME_DIST To compute the CUME_DIST of a value x in a set S of size N, we using the following formula:
0 0
Add a comment Improve this question Transcribed image text
Answer #1
  1. OLAP is stands for online analytical processing approach, it is basically used for answering multi dimensional analytical queries.
  2. The main application of AP model is for trend analysis Complex modelling and sophisticated data processing.
  3. Following are two one of the main categories of OLAP:-
  • Aggregate function

               1. Basic aggregate function

   2. Advanced aggregate function

  • Analysis function

          4. following is the detailed explanation of basic aggregate functions used in OLAP model:-

     A. Basic Aggregate Function:-

  • COUNT:-
  1. IT returns the number of tuples which meet required condition.
  • SUM:-
  1. IT returns sum of the values specified column.
  • MIN:-
  1. Returns minimum value from specified column.
  • MAX:-
  1. IT returns maximum value from specified column.
  • AVG:-
  1. IT returns average value from specified column.

       B. Advanced Aggregate Function:-

MAX AVG MIN Basic Aggregate Function COUNT SUM Fig. Basic Aggregate Function

  • CUBE:-
  1. It is extension to the group by clause used for representing data in cross tabular format.
  2. It uses attributes as a input, groups them and calculates the sub totals for the different combinations.
  • ROLLUP:-
  1. It is added advantage of group by clause, it can generate the aggregate from very small level to the most detailed versiot.
  2. Using ROLL UP we can compute multiple category of sub totals with particular group.
  3. the syntax of rollup is easy-to-use it is highly efficient adding minimal over head to the query.
  4. for data for data warehouse administrators rollup can simplify the maintenance.
  5. Rollup appears in the group by clause for select query its Syntax is:-
  6. SELECT.......GROUP BY ROLLUP ( grouping_column_reference_list);
  • Partial ROLL UP:-
  1. For including only some of the subtotals we can use partial role up function.
  2. Syntax:-
  3. GROUP BY expr1, ROLL UP(expr2,expr3);
  • GROUPING : function:-
  1. It is important to differentiate aggregate null that appear in the output by using roll up or cube function.
  2. GROUPING clause represent which outputs are subtotals for which aggregate functions.
  3. GROUPING appears in select statement its Syntax is as following:-
  4. SELECT....[GROUPING (DIMENSION 1,DIAMENSION2]....GRIUP BY {CUBE|ROLL UP| GROUPING SETS}....DIAMENSSION COLUMNS;

        B. SQL OLAP ADVANCED ANALYSIS FUNCTION:-

  • following are some of the advanced analysis functions:-

GROUPING ROLL UP CUBE Aggregate function (Advanced) Fig. Basic Aggregate Function

  1. RANK:-
  • it compute rank of the records as compare to other recordsrecords, based on the values of set of measures.
  • when we need to display ranking of multiple attributes we will need to partition the aggregate so that appropriate ranking can be displayed.
  • For that we have one option of display one rank on one attribute partitioning only.

        2. Top N Ranking:-

  • using the rank function we can display Top N ranking based on certain attributes values we can achieve this by simply in closing rank function in a subquery and filter condition outside the subquery

         3. CUMULATIVE DISTRIBUTION:-

  • To compute CUME_DIST of the value of x in as set X of size N we using the following formula.
  • CUME_DIST= ( number of values in S coming before and including X in rhe specified order)/ N
  • Following is the syntax:-
  • CUME_DIST() OVER([ query_partition_clause], order_by_clause);

MAX AVG MIN Basic Aggregate Function COUNT SUM Fig. Basic Aggregate Function

GROUPING ROLL UP CUBE Aggregate function (Advanced) Fig. Basic Aggregate Function

Add a comment
Know the answer?
Add Answer to:
Summarize these pages in your own style and you have to include in your report some...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Top of Form Q1 Which of the following is a valid aggregate function in SQL? Check...

    Top of Form Q1 Which of the following is a valid aggregate function in SQL? Check only those that apply. Question 1 options: AVG LEAST COUNT MIN MOST SUM Q2 Which of the following aggregate functions will only operate on a numeric value expression? Check only those that apply: Question 2 options: MIN MAX AVG COUNT SUM Q3 When applying DISTINCT to the value being calculated in an aggregate function like COUNT, what is the effect? SELECT COUNT(DISTINCT StreetName) FROM...

  • You will develop an E-Commerce database used to maintain customers, products and sales information. You are...

    You will develop an E-Commerce database used to maintain customers, products and sales information. You are required to 1) gather and analyze requirements 2) design logical structure of the database 3) create stored procedures to develop the tables and insert the data 4) write SQL statements for data extraction and reporting. Throughout the course of this semester you have analyzed the requirements for an eCommerce database, designed and developed your database. As a class we have gone through the process...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT