sql - Which is the correct form to create one to many relationships between two tables on a Oracle database
问题描述
I have a Oracle database in which I have two tables, RegistroPPL and Alias. One RegistroPPL can have multiple Aliases. Now, my question is, what is the right way to create this relationship, using a bridge table like this:
or creating a direct relationship like this
What is the best way to create one to many relationships according to the normalization rules, and how can I avoid redundant data?.
解决方案
In my experience, the two-table design is used for one-to-many relationships.
The only reason I can think of you might want to use an intermediate table is if there's some reason to think that in the future this might become a many-to-many relationship.
推荐阅读
- java - 在 ArrayList 中“合并”多个相同类型的元素
- sql - sql:在sql中相交(加入概率)
- angular - ReferenceError:未定义窗口:Angular 9
- assembly - NASM 警告:没有冒号的连续标签可能是一个错误
- java - ListView过滤器不适用于Android的多列
- python - 如何计算多个txt文件python中单词列表的频率
- vba - VBA - 运行时错误'91'对象变量或未设置块变量
- c# - TFS Build 2015 - 如何在构建过程中将文件的内容复制到另一个文件?
- django - 如何限制网站用户查看其他用户资料?
- java - 将 Android Studio 从特定版本更新到特定版本