简体   繁体   English

RDBMS-无法弄清楚该表的位置

[英]RDBMS - Can't figure out where to place this table

I've got a few days left before I need to hand in my relational database and everything's going alright. 我还需要几天时间才能提交我的关系数据库,一切都很好。 I have the database itself built but there's one design issue that I just can't figure out. 我已经建立了数据库本身,但是有一个设计问题我根本无法弄清楚。

I need a results table, one that references the Members and the Competitions table but I already have a link table there. 我需要一个结果表,该表引用了Members和Competitions表,但是我已经有了一个链接表。 I'm pretty sure I've simply managed to mislead myself but hope you guys can help! 我敢肯定,我只是设法误导了自己,但希望你们能提供帮助! :) :)

Since I'm an awkward 2 points away from being able to post an image, an imgur link to the schema itself is located here: http://imgur.com/mgKaQql 由于我距离能够发布图像还有2个尴尬的地方,因此指向架构本身的imgur链接位于: http ://imgur.com/mgKaQql

在此处输入图片说明

Looking at your tables, I think you are looking for either 看你的桌子,我想你正在寻找

  1. joining Members-Competitions to Competitions-Prizes, which would give the explicit relationship between the member and the prize that they won in that competition, (This is creating a Members-Competitions-Prizes "link" or relation) 加入“会员竞赛”到“竞赛奖”,这将使成员与他们在该竞赛中赢得的奖金之间具有明确的关系(这是在创建“会员竞赛”奖的“链接”或关系)

or 要么

  1. adding an attribute to the Members-Competitions relation that would show that members placement in the competition regardless of whether they won a prize. 在“成员-竞赛”关系中添加一个属性,该属性将显示成员在竞赛中的排名,无论他们是否赢得奖品。 (This is creating a new column in the Members-Competition link/relation) (这将在“成员竞争”链接/关系中创建一个新列)

You choice will depend on what you expect to do with the information. 您的选择将取决于您对信息的期望。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM