考试报名
考试报名
考试内容
考试大纲
在线客服
返回顶部

备考刷题,请到

CDA认证小程序

In a recursive relationship
A. The relationship could be mandatory at either end
B. The relationship could be an identifying relationship
C. The foreign key must have a role name to avoid attribute duplication
D. All of the above
上一题
下一题
收藏
点赞
评论
题目解析
题目评论(0)

正确答案是 D: All of the above。

以下是对每个选项的专业分析:

A: The relationship could be mandatory at either end
递归关系(也称为自引用关系)是指一个实体与自身的关系。在这种关系中,关系的两个端点可以是强制性的(mandatory),这意味着在这两个端点上都必须存在相应的实体实例。例如,一个员工必须有一个经理,而这个经理也是一个员工。

B: The relationship could be an identifying relationship
递归关系也可以是标识关系(identifying relationship)。在标识关系中,子实体的存在依赖于父实体。例如,在一个公司内部的员工关系中,一个员工的存在可能依赖于其上级(经理)的存在。

C: The foreign key must have a role name to avoid attribute duplication
在递归关系中,由于同一个实体参与了关系的两个端点,因此需要使用角色名(role name)来区分这些不同的参与角色,以避免属性重复。例如,在员工-经理关系中,可以使用“员工”和“经理”作为角色名来区分同一个实体的不同角色。

综上所述,选项A、B和C都是正确的,因此正确答案是 D: All of the above。