大数据就业实战培训 Oracle就业实战培训
071考试题库之前是比较稳定的,但随着Oracle的调整,071考试不断的增加新的考题,增加了考试的难度,所以我们专门收集整理了这些考试,并对这些考题进行解析,希望可以对考生有帮助。
每周五晚8点,我们有免费的OCP解析公开课,地址:https://ke.qq.com/course/326223 OCP题库交流群:1015267481,验证ocp
-------------------------------------------------------
071考试-第20题、choose the best answer
View the Exhibit and examine the data in the PROMOTIONS table.
PROMO_BEGIN_DATE is stored in the default date format, dd-mon-rr.
You need to produce a report that provides the name,cost,and start date of all promos
in the POST category that were launched before January 1, 2000.
Which SQL statement would you use?
A) SELECT promo_name, promo_cost, promo_begin_date
FROM promotions
WHERE promo_category LIKE '%post%' AND promo_begin_date < '1-JAN-00';
B) SELECT promo_name, promo_cost, promo_begin_date
FROM promotions
WHERE promo_category = 'post' AND promo_begin_date < '01-01-00';
C) SELECT promo_name, promo_cost, promo_begin_date
FROM promotions
WHERE promo_cost LIKE 'post%' AND promo_begin_date < '01-01-2000';
D) SELECT promo_name, promo_cost, Promo_begin_date
FROM promotions
WHERE promo_category LIKE 'p%' AND promo_begin_date < '1-JANUARY-00';
Answer:A
(解析:因为日期的默认格式是 dd-mon-yy,所以 January 1, 2000 转换成匹配的格式为 01-jan-00
)