-7041: Result table name not allowed 

Explanation:

In the CREATE VIEW statement a known result table was specified in a FROM condition of the QUERY EXPRESSION. But 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 conditions used when generating the result table.