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

备考刷题,请到

CDA认证小程序

The hierarchical relationship between dimension fields is also known as a parent-child relationship between fields. Which of the following fields satisfy the parent-child relationship?
A. Month and day of the week
B. Province and city
C. Order and order details
D. Brand and product
上一题
下一题
收藏
点赞
评论
题目解析
题目评论(0)

A, the relationship between months and days of the week is not a parent-child relationship because a week can belong to multiple different months. On the other hand, the relationships in options B, C, and D (province and city, order and order details, brand and product) can be considered parent-child relationships.

正确答案是:B: 省和市

专业分析:

在数据建模和数据库设计中,父子关系(Parent-Child Relationship)指的是一个字段(父字段)包含另一个字段(子字段)的情况。具体到选项中:

A: 月和星期几——月和星期几之间没有直接的父子关系,因为一个月包含多个星期,而每个星期又包含多个星期几,它们之间的关系更复杂,不是简单的父子关系。

B: 省和市——这是一个典型的父子关系。一个省包含多个市,市是省的子集,因此省和市之间存在父子关系。

C: 订单和订单详情——虽然订单和订单详情之间有关系,但它们更像是主表和从表的关系,而不是严格的父子关系。订单详情是订单的具体内容,但它们的层次关系更偏向于主从关系。

D: 品牌和产品——品牌和产品之间也有关系,但品牌包含多个产品,这更像是一个分类和实例的关系,而不是严格的父子关系。

因此,B: 省和市,最符合父子关系的定义。