db.books.32_views_materialized_C.sql Maven / Gradle / Ivy
The newest version!
-- Materialized views
-- IBM DB2 materialized query table (MQT)
CREATE TABLE AuthorsCountries
(
Id,
FirstName,
LastName,
Country
)
AS
(
SELECT
Id,
FirstName,
LastName,
Country
FROM
Authors
)
DATA INITIALLY DEFERRED
REFRESH DEFERRED
MAINTAINED BY SYSTEM
ENABLE QUERY OPTIMIZATION
;
SET INTEGRITY FOR AUTHORSCOUNTRIES ALL IMMEDIATE UNCHECKED;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy