What if we can’t change the design? — My reflection of <Effective SQL> Part 3

<Effective SQL: 61 Specific Ways to Write Better SQL> gave me many tips for using the database.
The following links are reflections of previous chapters. You can feel free to navigate them.
This article is my third note and the reflection of this book with additional references. It includes the note for the following paragraphs:
- Item 18: Use Views to Simplify What Cannot Be Changed
- Item 20: Create Summary Tables and Maintain Them
- Item 21: Use UNION Statements to “Unpivot” Non-normalized Data
Item 18: Use Views to Simplify What Cannot Be Changed
The view is the pre-defined searching query for tables or view. It simplifies tables.
1.What can view help for us?
- We can use it to improve the denormalized table.

Recall the example in item 2. If we can’t change tables, we can use view to simplify existed tables.
We can also use the following code to generate normalized views.








