An Efficient Approach for Partial-Sum Queries in Data Cubes Using Hamming-Based Codes