The following statement indexes a table of orders by customer ID and order date. The customer ID field is a character field.

index on CUST_ID + dtos(ORDER_DATE) tag CUST_DATE