- Django Design Patterns and Best Practices
- Arun Ravindran
- 122字
- 2021-06-25 21:32:06
Third normal form (3NF)
In third normal form, the tables must satisfy the second normal form and should additionally satisfy the condition that all non-primary key columns must be directly dependent on the entire primary key and must be independent of each other.
Think about the Country column for a moment. Given the Latitude and Longitude, you can easily derive the Country column. Even though the country where a superpower was sighted is dependent on the Name-Power composite primary key, it is only indirectly dependent on them.
So, let's separate the location details into a separate countries table as follows:

As before, we have replaced the superhero's name with the corresponding User ID that can be used to reference the user table.
推薦閱讀
- Vue.js快速入門(mén)與深入實(shí)戰(zhàn)
- Clojure for Domain:specific Languages
- 樂(lè)高機(jī)器人設(shè)計(jì)技巧:EV3結(jié)構(gòu)設(shè)計(jì)與編程指導(dǎo)
- Bulma必知必會(huì)
- Windows Forensics Cookbook
- Java程序設(shè)計(jì):原理與范例
- Building an RPG with Unity 2018
- Learning Laravel's Eloquent
- Java零基礎(chǔ)實(shí)戰(zhàn)
- Qlik Sense? Cookbook
- Advanced Python Programming
- Software Architecture with Python
- Developer,Advocate!
- TensorFlow程序設(shè)計(jì)
- 軟件測(cè)試