
Database Design: This is How It's Done
Description
Book Introduction
Learn practical database design and optimization from Japan's top database experts.
Revised for the first time in 12 years, this must-read for database engineers is a must-read. This book teaches the right mindset for database design. The author, a professional database engineer, presents the fundamentals and practical know-how of database design in an accessible manner.
This book systematically and comprehensively covers fundamental knowledge and key points, from the fundamentals of logic design to normalization and performance. It also provides abundant samples, practice problems, and practical knowledge applicable in real-world development settings. It even provides helpful explanations of anti-patterns and gray areas to watch out for. This book is highly recommended for aspiring database engineers and anyone seeking a thorough understanding of the fundamentals and practices of database design.
This revised edition maintains the original structure while updating the content and adding cloud content.
Revised for the first time in 12 years, this must-read for database engineers is a must-read. This book teaches the right mindset for database design. The author, a professional database engineer, presents the fundamentals and practical know-how of database design in an accessible manner.
This book systematically and comprehensively covers fundamental knowledge and key points, from the fundamentals of logic design to normalization and performance. It also provides abundant samples, practice problems, and practical knowledge applicable in real-world development settings. It even provides helpful explanations of anti-patterns and gray areas to watch out for. This book is highly recommended for aspiring database engineers and anyone seeking a thorough understanding of the fundamentals and practices of database design.
This revised edition maintains the original structure while updating the content and adding cloud content.
- You can preview some of the book's contents.
Preview
index
Translator's Preface x
Preface xii
Beta Reader Review xv
CHAPTER 1 | He Who Masters the Database Masters the System 1
1.1 Systems and Databases 2
1.2 Various databases 4
1.3 System Development Process and Design 10
1.4 Design Phase and Database 14
CHAPTER 2 | Logic and Physical Design 23
2.1 Conceptual Schema and Logical Design 24
2.2 Internal Schema and Physical Design 29
2.3 Database-level redundancy configuration: Replication 46
2.4 Configuring Database Redundancy in the Cloud 50
2.5 Cloud Utilization Timing and Situation 58
2.6 Backup Design 63
2.7 Recovery Design 75
CHAPTER 3 | LOGICAL DESIGN AND NORMALIZATION: WHY PARTITION TABLES? 82
3.1 What is a table? 82
3.2 Table Components 85
3.3 What is Normalization? 96
3.4 First regular form 97
3.5 Second Normal Form: Partial Functional Dependency 104
3.6 Third Normal Form: Transitive Functional Dependencies 109
3.7 Voice-Coded Normal Form (BCNF) 112
3.8 Fourth regular form 118
3.9 5th regular form 123
3.10 Normalization Theorem 124
CHAPTER 4 | ER Diagrams: Representing Relationships Between Multiple Tables 131
4.1 Too many tables! 132
4.2 Understanding Relationships Between Tables 132
4.3 How to Create an ER Diagram 135
4.4 'Many-to-Many' Relationships and Relationship Entities 140
CHAPTER 5 | Logic Design and Performance: Drawbacks of Normalization and Denormalization 146
5.1 Pros and Cons of Normalization 147
5.2 Denormalization and Performance 154
5.3 Redundancy and Performance Tradeoffs 160
CHAPTER 6 | DATABASES AND PERFORMANCE 164
6.1 Factors that Determine Database Performance 165
6.2 Index Design 167
6.3 B-tree Index Design Method 173
6.4 Statistical Information 180
6.5 Tuning Methods Other Than Index 186
CHAPTER 7 | Logic Design Antipatterns 198
7.1 What Not to Do in Logic Design 198
7.2 Non-scalar values (below first normal form) 199
7.3 Double Mining 204
7.4 Single Reference Table 207
7.5 Table Splitting 210
7.6 Inappropriate Key 219
7.7 Double Master 221
7.8 Zombie Mart and Multilevel Market 224
CHAPTER 8 | Gray's Know-How in Logic Design 231
8.1 Designs at the Boundary of the Rules 231
8.2 Surrogate Keys: When Primary Keys Don't Work Well 232
8.3 Column-Based Tables 247
8.4 Ad-hoc Aggregation Key 252
8.5 Multi-level view 255
8.6 The Importance of Data Cleansing 258
CHAPTER 9 | ADVANCED LOGIC DESIGN: HANDLING TREE STRUCTURES WITH RDBMS 268
9.1 Weaknesses of Relational Databases 269
9.2 An Old but New Solution: The Adjacency List Model 271
9.3 Closed Table Model 279
9.4 Which model should I use? 284
APPENDIX A | Appendix: Practice Problem Solutions 288
Chapter 1 Answers (Practice Problems ▶ Page 22) 288
Chapter 2 Answers (Practice Problems ▶ Page 81) 293
Chapter 3 Answers (Practice Problems ▶ Page 130) 299
Chapter 4 Answers (Practice Problems ▶ Page 142) 302
Chapter 5 Answers (Practice Problems ▶ Page 162) 304
Chapter 6 Answers (Practice Problems ▶ Page 196) 311
Chapter 7 Answers (Practice Problems ▶ Page 230) 315
Chapter 8 Answers (Practice Problems ▶ Page 264) 316
Chapter 9 Answers (Practice Problems ▶ Page 286) 325
Conclusion 327
Search 331
Preface xii
Beta Reader Review xv
CHAPTER 1 | He Who Masters the Database Masters the System 1
1.1 Systems and Databases 2
1.2 Various databases 4
1.3 System Development Process and Design 10
1.4 Design Phase and Database 14
CHAPTER 2 | Logic and Physical Design 23
2.1 Conceptual Schema and Logical Design 24
2.2 Internal Schema and Physical Design 29
2.3 Database-level redundancy configuration: Replication 46
2.4 Configuring Database Redundancy in the Cloud 50
2.5 Cloud Utilization Timing and Situation 58
2.6 Backup Design 63
2.7 Recovery Design 75
CHAPTER 3 | LOGICAL DESIGN AND NORMALIZATION: WHY PARTITION TABLES? 82
3.1 What is a table? 82
3.2 Table Components 85
3.3 What is Normalization? 96
3.4 First regular form 97
3.5 Second Normal Form: Partial Functional Dependency 104
3.6 Third Normal Form: Transitive Functional Dependencies 109
3.7 Voice-Coded Normal Form (BCNF) 112
3.8 Fourth regular form 118
3.9 5th regular form 123
3.10 Normalization Theorem 124
CHAPTER 4 | ER Diagrams: Representing Relationships Between Multiple Tables 131
4.1 Too many tables! 132
4.2 Understanding Relationships Between Tables 132
4.3 How to Create an ER Diagram 135
4.4 'Many-to-Many' Relationships and Relationship Entities 140
CHAPTER 5 | Logic Design and Performance: Drawbacks of Normalization and Denormalization 146
5.1 Pros and Cons of Normalization 147
5.2 Denormalization and Performance 154
5.3 Redundancy and Performance Tradeoffs 160
CHAPTER 6 | DATABASES AND PERFORMANCE 164
6.1 Factors that Determine Database Performance 165
6.2 Index Design 167
6.3 B-tree Index Design Method 173
6.4 Statistical Information 180
6.5 Tuning Methods Other Than Index 186
CHAPTER 7 | Logic Design Antipatterns 198
7.1 What Not to Do in Logic Design 198
7.2 Non-scalar values (below first normal form) 199
7.3 Double Mining 204
7.4 Single Reference Table 207
7.5 Table Splitting 210
7.6 Inappropriate Key 219
7.7 Double Master 221
7.8 Zombie Mart and Multilevel Market 224
CHAPTER 8 | Gray's Know-How in Logic Design 231
8.1 Designs at the Boundary of the Rules 231
8.2 Surrogate Keys: When Primary Keys Don't Work Well 232
8.3 Column-Based Tables 247
8.4 Ad-hoc Aggregation Key 252
8.5 Multi-level view 255
8.6 The Importance of Data Cleansing 258
CHAPTER 9 | ADVANCED LOGIC DESIGN: HANDLING TREE STRUCTURES WITH RDBMS 268
9.1 Weaknesses of Relational Databases 269
9.2 An Old but New Solution: The Adjacency List Model 271
9.3 Closed Table Model 279
9.4 Which model should I use? 284
APPENDIX A | Appendix: Practice Problem Solutions 288
Chapter 1 Answers (Practice Problems ▶ Page 22) 288
Chapter 2 Answers (Practice Problems ▶ Page 81) 293
Chapter 3 Answers (Practice Problems ▶ Page 130) 299
Chapter 4 Answers (Practice Problems ▶ Page 142) 302
Chapter 5 Answers (Practice Problems ▶ Page 162) 304
Chapter 6 Answers (Practice Problems ▶ Page 196) 311
Chapter 7 Answers (Practice Problems ▶ Page 230) 315
Chapter 8 Answers (Practice Problems ▶ Page 264) 316
Chapter 9 Answers (Practice Problems ▶ Page 286) 325
Conclusion 327
Search 331
Detailed image

Into the book
Normalization is the process of organizing entities (tables) so that they can be used efficiently in the system.
The main purpose is to organize entity types so that update operations such as registering, modifying, and deleting data can be performed consistently.
/ Simply extracting entities and defining properties is not enough to utilize them in real systems.
Therefore, normalization is a very important foundation in the logical design of a relational database.
Normalization is a key to understanding database logic design.
--- p.27
The database is the heart of the system.
Therefore, there should never be any loss of data inside the database.
If that happens, you will have to bear huge losses.
When such data loss incidents occur in large-scale systems, they are widely reported in the media, including newspapers and television.
/ There are two approaches to design to prevent these 'accidents'.
The first is to design to minimize data loss, which is where the availability design described earlier comes into play.
Second, we need to be prepared to recover data even if it is lost due to a failure.
This second approach is what we'll be discussing in this and the next section: backup and recovery.
--- pp.63~64
So why is second normal form necessary? What are the advantages of adopting second normal form? Some engineers memorize the normalization process without understanding these core concepts.
But this attitude misses the point.
So, let's take a closer look at the advantages of the second normal form.
(…) First, let’s look at the ‘Employee’ table (page 104) before normalization.
What problems might arise when trying to process actual work with this table? For example, if you try to register a company (C Construction) that doesn't yet have employee information, the employee ID, which is part of the primary key, is unknown (NULL), so the table cannot be registered.
Of course, there are ways to temporarily insert fake values into employee IDs, and there are systems that actually operate that way, but this is not a fundamental solution.
It is better to avoid this type of wrong practice from the beginning.
--- p.106
For example, let's consider the case where we added aggregate data called 'Number of Products' to the 'Orders' table.
To store data in a table, you must naturally calculate the number of products when registering order data.
In addition, order details are not finalized once registered and may be subject to change within a certain period of time (order cancellation, order quantity change, etc.).
Therefore, the number of products may increase or decrease, and the value of the 'Number of Products' column in the 'Orders' table must be updated periodically.
It is important to consider the system load that occurs when updating data in this way.
--- p.161
However, the biggest problem is that without proper exclusive control (concurrency control, locking) mechanisms, functional errors can occur.
If multiple users access the numbering table simultaneously and are issued the same number, a uniqueness constraint violation occurs when inserting data into the 'city/county/district' table.
And when this happens, there are cases where numbers are skipped.
/ To prevent this, when one user accesses the numbering table, the table must be locked to prevent other users from accessing it.
Developing programs that take this kind of concurrency control into account is not only complex, but also difficult to switch to a different DBMS because transaction isolation levels vary for each DBMS.
Sequence objects, on the other hand, already have this locking mechanism built in.
For this reason, we do not recommend implementing autonumbering directly in your application.
The main purpose is to organize entity types so that update operations such as registering, modifying, and deleting data can be performed consistently.
/ Simply extracting entities and defining properties is not enough to utilize them in real systems.
Therefore, normalization is a very important foundation in the logical design of a relational database.
Normalization is a key to understanding database logic design.
--- p.27
The database is the heart of the system.
Therefore, there should never be any loss of data inside the database.
If that happens, you will have to bear huge losses.
When such data loss incidents occur in large-scale systems, they are widely reported in the media, including newspapers and television.
/ There are two approaches to design to prevent these 'accidents'.
The first is to design to minimize data loss, which is where the availability design described earlier comes into play.
Second, we need to be prepared to recover data even if it is lost due to a failure.
This second approach is what we'll be discussing in this and the next section: backup and recovery.
--- pp.63~64
So why is second normal form necessary? What are the advantages of adopting second normal form? Some engineers memorize the normalization process without understanding these core concepts.
But this attitude misses the point.
So, let's take a closer look at the advantages of the second normal form.
(…) First, let’s look at the ‘Employee’ table (page 104) before normalization.
What problems might arise when trying to process actual work with this table? For example, if you try to register a company (C Construction) that doesn't yet have employee information, the employee ID, which is part of the primary key, is unknown (NULL), so the table cannot be registered.
Of course, there are ways to temporarily insert fake values into employee IDs, and there are systems that actually operate that way, but this is not a fundamental solution.
It is better to avoid this type of wrong practice from the beginning.
--- p.106
For example, let's consider the case where we added aggregate data called 'Number of Products' to the 'Orders' table.
To store data in a table, you must naturally calculate the number of products when registering order data.
In addition, order details are not finalized once registered and may be subject to change within a certain period of time (order cancellation, order quantity change, etc.).
Therefore, the number of products may increase or decrease, and the value of the 'Number of Products' column in the 'Orders' table must be updated periodically.
It is important to consider the system load that occurs when updating data in this way.
--- p.161
However, the biggest problem is that without proper exclusive control (concurrency control, locking) mechanisms, functional errors can occur.
If multiple users access the numbering table simultaneously and are issued the same number, a uniqueness constraint violation occurs when inserting data into the 'city/county/district' table.
And when this happens, there are cases where numbers are skipped.
/ To prevent this, when one user accesses the numbering table, the table must be locked to prevent other users from accessing it.
Developing programs that take this kind of concurrency control into account is not only complex, but also difficult to switch to a different DBMS because transaction isolation levels vary for each DBMS.
Sequence objects, on the other hand, already have this locking mechanism built in.
For this reason, we do not recommend implementing autonumbering directly in your application.
--- p.245
Publisher's Review
Become a master of database design
Learn practical database design and optimization from Japan's top database experts.
As the importance of databases grows in the AI era, a revised edition of a must-read book on relational database design has been published after 12 years.
The revised edition retains the original structure while updating the content and adding cloud content to keep up with the times.
What is particularly impressive is that, rather than listing specific DB products or features, it explains the 'principles' of desirable logical and physical design from a practical perspective.
That is, the author emphasizes that we must understand the trade-offs in order to maintain a balance between ideals and reality without being biased towards one side or the other.
Chapters 1 and 2 very kindly explain the basics of DB, including system development starting with requirements definition, logical design, and physical design.
Chapters 3 through 5 cover core concepts such as tables, normalization, and ER diagrams, while Chapters 6 through 8 cover more specialized topics such as performance tuning, anti-patterns, and gray know-how (design methods that are not anti-patterns but have distinct advantages and disadvantages).
Chapter 9 covers tree structures to overcome the weaknesses of RDB, and includes explanations of practice problems in the appendix.
This book is like a complete database design textbook, reflecting the latest case studies and 20 years of on-site know-how in the Japanese IT industry.
With explanations so friendly that even experienced users might find them excessive, along with 79 key points and 21 practice questions, this book is a great help not only to those aiming to become DB engineers, but also to those systematically acquiring the fundamentals and practical know-how of DB design.
Learn practical database design and optimization from Japan's top database experts.
As the importance of databases grows in the AI era, a revised edition of a must-read book on relational database design has been published after 12 years.
The revised edition retains the original structure while updating the content and adding cloud content to keep up with the times.
What is particularly impressive is that, rather than listing specific DB products or features, it explains the 'principles' of desirable logical and physical design from a practical perspective.
That is, the author emphasizes that we must understand the trade-offs in order to maintain a balance between ideals and reality without being biased towards one side or the other.
Chapters 1 and 2 very kindly explain the basics of DB, including system development starting with requirements definition, logical design, and physical design.
Chapters 3 through 5 cover core concepts such as tables, normalization, and ER diagrams, while Chapters 6 through 8 cover more specialized topics such as performance tuning, anti-patterns, and gray know-how (design methods that are not anti-patterns but have distinct advantages and disadvantages).
Chapter 9 covers tree structures to overcome the weaknesses of RDB, and includes explanations of practice problems in the appendix.
This book is like a complete database design textbook, reflecting the latest case studies and 20 years of on-site know-how in the Japanese IT industry.
With explanations so friendly that even experienced users might find them excessive, along with 79 key points and 21 practice questions, this book is a great help not only to those aiming to become DB engineers, but also to those systematically acquiring the fundamentals and practical know-how of DB design.
GOODS SPECIFICS
- Date of issue: November 6, 2025
- Format: Paperback book binding method guide
- Page count, weight, size: 356 pages | 170*225*17mm
- ISBN13: 9791194587514
You may also like
카테고리
korean
korean