You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Chapter 10/Readme.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,13 @@ CREATE OR REPLACE VIEW customer_details_vw AS
51
51
JOIN country co ONci.country_id=co.country_id;
52
52
```
53
53
54
+
<br>
54
55
56
+
**Benefits of using Views**
57
+
- Simplify complex business logics: view helps to simplify the complex business logic written in the SQL queries. Instead of executing the same complex query multiple times, you can create a view from it. This View can be referenced by using a simple SELECT query.
58
+
- Improves data security: We can use views to display user-specific contents, this improves the security as user can be restricted from using source table with lot many information which may not be relevant.
59
+
- Reduce data distraction: Views do not show the irrelevant column hence they reduce data distraction.
60
+
- Preserves the appearance of original table structure: A view can preserve the appearance of the original table structure to minimize disruption to other applications.
0 commit comments