The data model for the Human Capital Management application looks similar to what is shown in the following diagram:
There are six tables in this application:
Employees
: This is the main table, which has one record per employee and month. It contains all the relevant information about the employee such as country, position, salary, and so on. It would probably be a cleaner data model if this table were split into one table containing employee information that doesn't change over time and another table with the time-dependent information.However, since the QIX engine analyzes the data just as efficiently either way, we don't see any great benefit in spending time structuring the data more.
Hierarchy
: This table contains information about the hierarchy of the employee, such as who the manager of the employee is, and who the VP of the employee is.Survey
: This table contains the results from an external survey made on employee satisfaction...