What is windowing? Illustrate a query with windowing using the above table. Given the following table: Consider

Question:

What is windowing? Illustrate a query with windowing using the above table.

Given the following table:

PRODUCT QUARTER A A A A A A A B B B B B B B Q1 Q1 Q2 Q2 Q3 Q4 Q4 Q1 Q1 Q2 Q2 Q3 Q4 Q4 REGION SALES Europe 10

Consider the following queries:

SELECT PRODUCT, REGION, SUM(SALES) FROM SALESTABLE GROUP BY CUBE (PRODUCT, REGION) SELECT PRODUCT, REGION,

What is the output of the above queries?

Can you reformulate each query using other SQL OLAP constructs?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: