- Django Design Patterns and Best Practices
- Arun Ravindran
- 95字
- 2021-06-25 21:32:06
Second normal form (2NF)
The second normal form must satisfy all the conditions of the first normal form.
In addition, it must satisfy the condition that all non-primary key columns must be dependent on the entire primary key.
In the previous table, notice that Origin depends only on the superhero, that is, Name. It doesn't matter which Power we are talking about. So, Origin is not entirely dependent on the composite primary key — Name and Power.
Let's extract just the origin information into a separate table called Origin, as shown here:

推薦閱讀
- HTML5+CSS3王者歸來
- JavaScript前端開發模塊化教程
- Python 深度學習
- Python從菜鳥到高手(第2版)
- Java虛擬機字節碼:從入門到實戰
- Serverless架構
- Drupal 8 Module Development
- Hands-On Full Stack Development with Go
- Test-Driven Development with Django
- Java Web應用開發項目教程
- Arduino可穿戴設備開發
- C陷阱與缺陷
- Anaconda數據科學實戰
- OpenCV 3.0 Computer Vision with Java
- Mobile Forensics:Advanced Investigative Strategies