1. A method for providing a data management system, comprising: preprocessing a database having a relation to produce an index; receiving a query having aggregation constraints; and applying said index to look up a result in response to said query having aggregation constraints.