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

备考刷题,请到

CDA认证小程序

The figure shows a company's sales data table, product table, and category table. Please answer the following question: The product table is left joined with the category table. What is the corresponding relationship?
A. One-to-one
B. One-to-many
C. Many-to-many
D. Many-to-one
上一题
下一题
收藏
点赞
评论
题目解析
题目评论(0)

The common field between the product table and the category table is the category ID. The product table has many records for each category, while the category table has only one record for each category.

正确答案是:D: 多对一(Many-to-one)。

专业分析:

1. **表结构**:
- **销售数据表(Sales Data Table)**:包含销售记录的详细信息,例如销售ID、产品ID、销售数量等。
- **产品表(Product Table)**:包含产品的详细信息,例如产品ID、产品名称、类别ID等。
- **类别表(Category Table)**:包含类别的详细信息,例如类别ID、类别名称等。

2. **关系分析**:
- **产品表与类别表**:每个产品属于一个类别,但一个类别可以包含多个产品。因此,产品表中的每个记录(产品ID)对应类别表中的一个记录(类别ID),而类别表中的一个记录(类别ID)可以对应多个产品表中的记录(产品ID)。

这说明产品表(Product Table)到类别表(Category Table)的关系是多对一(Many-to-one)。每个产品(Product)对应一个类别(Category),但一个类别(Category)可以有多个产品(Product)。

因此,正确答案是D: 多对一(Many-to-one)。