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

Introducing complexity through join tables

Let's take the model, which was described previously, to the database administrator for an actual implementation. What happens then is that, in this implementation, the relational model inherently causes complexity. What you can see in the following diagram is that, for every relationship where we can have n-n combinations, we actually need to introduce something that links the two tables together.

This is what we call a join table, and this will be used by every query that requests a combination of the n-n entities:


 The database schema

In the previous example, we introduced the AppDatabase table to link applications to database servers and the UserApp table to link Users to Applications. These join tables are only necessary for dealing with the shortcomings of the relational model, and they complicate our lives as database administrators and application developers. They introduce unwanted complexity.

主站蜘蛛池模板: 谢通门县| 安化县| 长治市| 仁化县| 南平市| 沙田区| 吐鲁番市| 远安县| 锡林郭勒盟| 涟源市| 凉城县| 无极县| 乌鲁木齐县| 台中县| 灌阳县| 长汀县| 永胜县| 河西区| 新宁县| 安西县| 武邑县| 攀枝花市| 潢川县| 孟连| 平乐县| 聂拉木县| 阿拉尔市| 长垣县| 呼图壁县| 涿鹿县| 舒城县| 龙南县| 防城港市| 张掖市| 科技| 鄂托克前旗| 宝丰县| 柳州市| 龙门县| 定结县| 佛坪县|