OCP-1Z0-051 第151题 集合操作

一、原题
View the Exhibit and examine the structure of the CUSTOMERS and CUST_HISTORY tables.

The CUSTOMERS table contains the current location of all currently active customers. The CUST_HISTORY table stores historical details relating to any changes in the location of all currently as well as previous customers who are no longer active with the company.
You need to find those customers who have never changed their address.
Which SET operator would you use to get the required output?
A. MINUS
B. UNION
C. INTERSECT
D. UNION ALL

答案:A

二、题目翻译
查看CUSTOMERS and CUST_HISTORY的表结构:
CUSTOMERS表包含所有当前活动客户的位置,CUST_HISTORY表存储相关的所有当前位置的改变的历史信息和公司中先前不再活动的客户。
要找到那些从来没有改变过地址的客户.
哪一个集合操作给出所需结果。

三、题目解析
一个表中是活动客户的地址信息,一个表中是客户以前地址的历史信息,两张表的差集,就是从来没有改变过地址的客户。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值