GATE DA 2026 · SQL Queries

MCQ · 2 marks · Problem DBMS-SQL-0043

A data cube has three dimensions: time, location and item. The concept hierarchy of each dimension has three levels (for time: day, month, year), and each dimension can also be fully summarised to the level "all". Which of the following options denotes the total number of possible data cuboids from these concept hierarchies?
  1. A
    \(4^{3}\)
  2. B
    \(2^{3}\)
  3. C
    \(2!\)
  4. D
    \(4!\)

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solution\[\boxed{\text{number of cuboids} = \prod_{i=1}^{n} (L_i + 1)}\]Each dimension can be taken at one of its \(L_i = 3\) levels or at "all", giving \(3 + 1 = 4\) choices.With three independent dimensions: \(4 \times 4 \times 4 = 4^3 = 64\).Answer: A

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com