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

备考刷题,请到

CDA认证小程序

In a non-identifying relationship
A. The primary key of the child entity is removed
B. The primary key of the child entity is concatenated
C. The primary key of the parent entity becomes a foreign key in the child entity
D. The primary key of the parent entity becomes part of the primary key of the child entity You Answered
上一题
下一题
收藏
点赞
评论
题目解析
题目评论(0)

在非标识关系(non-identifying relationship)中,子实体的主键不依赖于父实体的主键,因此子实体的主键是独立的。我们来分析一下各个选项:

A: The primary key of the child entity is removed(子实体的主键被移除)
- 这个选项不正确。即使在非标识关系中,子实体仍然需要有自己的主键,以唯一标识每一条记录。

B: The primary key of the child entity is concatenated(子实体的主键被连接)
- 这个选项不正确。在非标识关系中,子实体的主键不需要与父实体的主键连接。

C: The primary key of the parent entity becomes a foreign key in the child entity(父实体的主键成为子实体中的外键)
- 这个选项是正确的。在非标识关系中,父实体的主键会作为外键出现在子实体中,但不会成为子实体主键的一部分。

D: The primary key of the parent entity becomes part of the primary key of the child entity(父实体的主键成为子实体主键的一部分)
- 这个选项不正确。这种情况适用于标识关系(identifying relationship),而不是非标识关系。

因此,正确答案是:

C: The primary key of the parent entity becomes a foreign key in the child entity(父实体的主键成为子实体中的外键)。

专业分析:
在非标识关系中,子实体和父实体之间的关系通过外键来表示,但子实体的主键是独立的,不依赖于父实体的主键。这种设计允许子实体拥有自己的唯一标识,同时保持与父实体的关联。通过外键,数据库能够维护数据的完整性和一致性,确保子实体记录能够正确引用父实体记录。