-8007: Column must be key column
Explanation:
The specification of a non-key column is not allowed here.
User Action:
Use a <QUERY statement> issued on the system table DOMAIN.COLUMNS to find out the columns which belong to the table key. Only these columns can be specified at this position within the SQL statement.