1. A method for use in a database system, comprising: storing a predefined data structure and plural tables; performing a join plan that involves the plural tables; and determining if a first group-by operation can be skipped in response to data elements in the predefined data structure.