CREATE MATERIALIZED VIEW Available
REFRESH FORCE
START WITH CURRENT_DATE NEXT CURRENT_DATE + 1
AS
SELECT Table.item_id AS item_id,
Table.reserv_id AS reserv_id
FROM Table
LEFT OUTER JOIN Reserv ON Reserv.reserv_id = Table.reserv_id
WHERE Reserv.start_date > CURRENT_DATE
OR Reserv.end_date < CURRENT_DATE
OR Table.reserv_id IS NULL;
I want to create view which is update once a day but I get error: " syntax error at or near "REFRESH" ". What is wrong with it?