OCP-1Z0-051-V9.02-56题

56. View the Exhibit and examine the structure of the PROMOTIONS table. 
Using the PROMOTIONS table,  you need to find out the names and cost of all the promos done on 'TV'
and  'internet' that ended in the time interval 15th March '00 to 15th October '00.
Which two queries would give the required result?   (Choose two.) 
 
A. SELECT promo_name,  promo_cost     
FROM promotions     
WHERE  promo_category IN ('TV', 'internet') AND           
promo_end_date BETWEEN '15-MAR-00' AND '15-OCT-00';
B. SELECT promo_name,  promo_cost    
FROM promotions    
WHERE  promo_category = 'TV'   OR  promo_category ='internet' AND       
promo_end_date >='15-MAR-00'   OR  promo_end_date <='15-OCT-00';
C. SELECT promo_name,  promo_cost     
FROM promotions     
WHERE   (promo_category   BETWEEN 'TV' AND 'internet') AND         
(promo_end_date  IN  ('15-MAR-00','15-OCT-00'));
D. SELECT promo_name,  promo_cost    
FROM promotions    
WHERE  (promo_category = 'TV' OR promo_category ='internet') AND
  (promo_end_date >='15-MAR-00' AND promo_end_date <='15-OCT-00');
 
Answer: AD
答案解析:
题意要求 done on 'TV' and   'internet' that ended in the time interval 15th March '00 to 15th October '00.
B错误, promo_end_date >='15-MAR-00'  OR   promo_end_date <='15-OCT-00' 应使用AND
C错误, promo_category   BETWEEN 'TV' AND 'internet',条件不满足。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值