-7041: Result table name not allowed

Explanation:

In a CREATE VIEW statement, a named result table was specified in a FROM clause of the QUERY expression. However, only base or view tables may be specified.

User Action:

Specify a base or view table in the SQL statement and expand the search condition to include the conditions used when the result table was generated.