To create a join index on a table with valid time, precede the SELECT statement in the join index definition with a CURRENT VALIDTIME, NONSEQUENCED VALIDTIME, or SEQUENCED VALIDTIME qualifier. For example:
CREATE JOIN INDEX Policy_JI AS CURRENT VALIDTIME SELECT Policy_ID, Policy_Type, Validity FROM Policy;
A join index that is current or sequenced in the valid-time dimension must project the valid-time column in the SELECT statement to ensure that the join index is used appropriately. Here, the Validity column is the valid-time column.