Lec - 17

Views

Use cases

  1. Providing restricted access to some users
  2. For better performance of join queries which are executed frequently
    • works like cache, once we join some tables we can store it usign a view and the access again

Syntax and examples

content_copy
create view <view_name> as <select_query>;
content_copy
create view <view_name> as <select_query> with read only;
content_copy
create view <view_name> as <select_query with where> with check option;