Two questions regarding best practices when using database views
Two questions regarding best practices when using database views.
1. Is it a best practice and/or appropriate for user's to perform DML on the underlying table's data via views?
2. If it is a best practice and/or appropriate to perform DML via a view, when we want to back up that data like prior to that DML, should we back up at the view level or at the table level?
3. Is it a best practice for the application's data to be exposed via views and not the base tables, i.e. have a user schema in the db who owns the base tables and views and just grant object privileges on the views to another database user which the application connects to the database as.