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

备考刷题,请到

CDA认证小程序

The following is an E-R diagram of transaction related tables for a company. Please answer the questions by observing the diagram: 产品表:products table 区域表:regions table 订单表:orders table 订单提成表:commissions table 赵大:Zhao Da 王二:Wang Er 孙三:Sun san The orders and commissions tables record data at the transaction level. The products and regions tables record information focused around the product and region dimensions. Among the tables, the ones that can be merged into a single table are:
A. Products and orders
B. Regions and commissions
C. Commissions and orders
D. Products and regions
上一题
下一题
收藏
点赞
评论
题目解析
题目评论(0)

Orders and commissions have the same primary key order_id, so they can be merged into one table.

正确答案是:C: Commissions and orders

专业分析:

在给定的E-R图中,我们可以看到不同的表之间的关系:

1. **产品表(products table)**:记录产品相关的信息。
2. **区域表(regions table)**:记录区域相关的信息。
3. **订单表(orders table)**:记录订单相关的信息。
4. **订单提成表(commissions table)**:记录每个订单的提成信息。

根据描述,订单表和订单提成表都记录了交易级别的数据。订单表包含了每个订单的基本信息,而订单提成表则包含了与订单相关的提成信息。这两个表之间存在直接的关系,通常一个订单会对应一个或多个提成记录(或者反之,一个提成记录对应一个订单)。因此,这两个表可以通过订单ID进行合并,形成一个包含订单及其提成信息的综合表。

其他选项的分析:

A: **Products and orders**:产品表和订单表记录的是不同维度的信息,一个是产品维度,一个是交易维度,合并这两个表没有明显的逻辑关系。

B: **Regions and commissions**:区域表和订单提成表记录的是不同维度的信息,一个是区域维度,一个是交易维度,合并这两个表没有明显的逻辑关系。

D: **Products and regions**:产品表和区域表记录的是不同维度的信息,一个是产品维度,一个是区域维度,合并这两个表没有明显的逻辑关系。

综上所述,最合理的合并方式是C选项中的订单表和订单提成表。