Professional Documents
Culture Documents
Lab15 Views and MaterializedViews
Lab15 Views and MaterializedViews
VIEWS
======
USE DATABASE PUBLIC_DB;
// Query the view and see query profile how it is fetching data from underlying
tables
SELECT * FROM MYVIEWS.VW_CUSTOMER;
=============
SECURE VIEWS
=============
SHOW VIEWS;
==================
MATERIALIZED VIEWS
===================
// Query mat view and see query profile, run after some time
SELECT * FROM MYVIEWS.MAT_VW_ORDERS;