Materialized view fast refresh with HAVING clause?
问题 On Oracle 11g I'm trying to create a materialized view with FAST REFRESH ON COMMIT that contains a HAVING clause. The Database Data Warehousing Guide says: General Restrictions on Fast Refresh The defining query of the materialized view is restricted as follows: It cannot contain a HAVING clause with a subquery. But if I add HAVING count(*)>1 (note: no subquery) to an otherwise working materialized view, I get this error: ORA-12054: cannot set the ON COMMIT refresh attribute for the