With the CREATE VIEW statement, the FROM clause of the QUERY expression contains a known result table. However, only base or view tables may be specified.
Specify a base or view table in the SQL statement and expand the search condition to include conditions used when generating the result table.