Informix Error -23937: GK-index creation: table (table_name) isn't join-on-key to the indexed table. The error message shows the name (table_name) of the table that is not correctly joined in the WHERE clause of the statement. Change the WHERE clause to include an equality test.
Cause and resolution
GK-index creation: table (table_name) isn't join-on-key to the indexed table. The error message shows the name (table_name) of the table that is not correctly joined in the WHERE clause of the statement. Change the WHERE clause to include an equality test.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-23937 fires when the named table in a CREATE GK INDEX statement isn't correctly
joined to the indexed table in the WHERE clause — per the official guidance.
- A missing equality join condition between the named table and the indexed table, per the official guidance — the direct, only cause.
Solutions / Resolution
- Change the
WHEREclause to include an equality test joining the named table to the indexed table, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a missing equality join.
Diagnostic Checks
- Check the
WHEREclause for an equality join between the named table and the indexed table, and add one if missing.
Related Errors / Related Topics
- -23931 — "GK-index creation: FROM clause must contain LOCAL, STATIC BASE tables only." A related GK-index-creation error, on ineligible table types rather than a missing join condition.
- -23932 — "GK-index creation: indexed table missing in the SELECT statement." A related GK-index-creation error, on the indexed table being absent/aliased rather than a missing join condition.
The named table wasn't correctly joined on key to the indexed table — add an equality
test in the WHERE clause.