lookup_table: Transform a flat table into a look up table
Description
Checks that the given attributes form a primary key of the table. Otherwise,
group the records so that they form a primary key. To carry out the groupings,
aggregation functions for attributes and measures must be provided.