官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 山西省| 弋阳县| 潼南县| 北宁市| 沙河市| 平远县| 永新县| 南江县| 闵行区| 盈江县| 南平市| 沅陵县| 延安市| 密云县| 巴彦淖尔市| 盐亭县| 威信县| 云林县| 通化县| 咸宁市| 凌云县| 湘潭县| 蒙阴县| 正蓝旗| 合作市| 财经| 肥乡县| 镇沅| 石棉县| 桐城市| 剑河县| 潞城市| 彩票| 明光市| 确山县| 栖霞市| 凤庆县| 奈曼旗| 蕉岭县| 西城区| 竹山县|