The schema is comprised of a fact table that represents the events in Jive SBS, and corresponding dimension tables that represent the actors and objects that take part in those events. Each column in the fact table contains a key that relates to an entry in the corresponding dimension table. For example, the user_id column contains ids that can be found in the jivedw_user table. A basic query against the analytics schema will be a SELECT from the fact table, optionally performing INNER JOINS against the dimension tables. The dimension tables are used both constrain the results of the query based on their attributes and also to provide attribute data, e.g. the usernames of users.
For more about the schema's design, be sure to check out Analytics Data Model in the Developers' Guide on Jivespace.
CREATE LANGUAGE plpgsql