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

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.

主站蜘蛛池模板: 桃源县| 鹤山市| 小金县| 孙吴县| 黄浦区| 托克托县| 延庆县| 盐池县| 汝城县| 资溪县| 北辰区| 太白县| 沙洋县| 木兰县| 黔南| 墨竹工卡县| 镇远县| 铁岭县| 沂南县| 阿图什市| 建始县| 习水县| 敦化市| 丰县| 中山市| 鄂伦春自治旗| 黔东| 乡宁县| 黄平县| 且末县| 闻喜县| 青浦区| 漠河县| 庆安县| 左云县| SHOW| 凤山市| 淮安市| 尤溪县| 平遥县| 定南县|