Consider a fact table in an OLAP application: Facts(\(D_1, D_2\), val), where \(D_1\) and \(D_2\) are its dimension attributes and val is a dependent attribute. Suppose attribute \(D_1\) takes 3 values and \(D_2\) 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 FactsGROUP BY CUBE (D1, D2);- A1
- B6
- C9
- D12