View Advantage & Disadvantage

  • Data security - no need to give permission on the table, infact a view can be created, having only selected number of coloums in its definition. So user will only be able to see those coloums.
  • Simplicity - a very complicated query can be saved as a view defenition. when needed can be called by its view name.
  • Removes dependency - Can be very helpful to remove the dependecny from the underlying tables. Suppose a view is created by joining several tables. After some time, there are some changes on the tables, so only defenition of view can be changed and there is no need to change all the code where view is used.
  • No space - takes no space ( except materialized view )