Data Warehouse Modelling · Database Management and Warehousing
3 questions · asked in 2 of 3 years (2024–2026)
MCQ 31-mark 1 · 2-mark 2
2024Questions per year2026
Questions 1–3 of 3
Consider that the visualization of a -dimensional data cube is showing Sales Quantity for each combination of the attributes Product Type, Month and Country.
From this, if we want to further visualize the Sales Quantity for each combination of Product Type, Month and State, which of the following OLAP operations should be performed?
From this, if we want to further visualize the Sales Quantity for each combination of Product Type, Month and State, which of the following OLAP operations should be performed?
Answer: (D)
The data cube has the dimensions Product Type, Month and Country. We want Country replaced by State. State is a finer level of the location hierarchy (), so the data is shown in more detail. Product Type and Month stay the same.
Going down to a finer level of a hierarchy is drill-down.
Why the others do not fit:
Roll-up is the opposite, from State up to Country.
Slicing fixes one dimension at a single value, and dicing picks a sub-cube. Neither adds a finer level.
Answer: (D)
Going down to a finer level of a hierarchy is drill-down.
Why the others do not fit:
Roll-up is the opposite, from State up to Country.
Slicing fixes one dimension at a single value, and dicing picks a sub-cube. Neither adds a finer level.
Answer: (D)
Consider the concept hierarchies as shown in the figure.
Which of the following options denotes the total number of possible data cuboids from these concept hierarchies?
Which of the following options denotes the total number of possible data cuboids from these concept hierarchies?
Answer: (A)
Every concept hierarchy in the figure has levels (for example Year→Month→Day). If we also count the "ALL" level (fully summarized), each dimension has possible levels of aggregation.
There are independent dimensions (time, location, item). Each one gives possible aggregation levels. The total number of distinct data cuboids is the product over all dimensions:
Answer: 4³
There are independent dimensions (time, location, item). Each one gives possible aggregation levels. The total number of distinct data cuboids is the product over all dimensions:
Answer: 4³
Consider a fact table in an OLAP application: Facts(, val), where and are its dimension attributes and val is a dependent attribute. Suppose attribute takes 3 values and takes 2 values, and all combinations of these values are present in the table Facts. How many tuples are there in the result of the following query?
SELECT D1, D2, sum(val) FROM Facts
GROUP BY CUBE (D1, D2);
SELECT D1, D2, sum(val) FROM Facts
GROUP BY CUBE (D1, D2);
Answer: (D)
gives the groupings on every subset of the dimensions: , , and (grand total). The result has the rows of all four groupings.
With taking 3 values and taking 2 values, and all combinations present:
- Group by : rows
- Group by only: rows
- Group by only: rows
- Grand total (no grouping): row
Total tuples.
Answer: (D)
With taking 3 values and taking 2 values, and all combinations present:
- Group by : rows
- Group by only: rows
- Group by only: rows
- Grand total (no grouping): row
Total tuples.
Answer: (D)
Keep practising