You work as a database administrator at ABC.com. You study the exhibit carefully. Exhibit:
Which two SQL statements would execute successfully? (Choose two.)
A.
UPDATE promotions SET promo_cost = promo_cost+ 100 WHERE
TO_CHAR(promo_end_date, ‘yyyy’) > ‘2000’;
B.
SELECT promo_begin_date FROM promotions WHERE
TO_CHAR(promo_begin_date,’mon dd yy’)=’jul 01 98′;
C.
UPDATE promotions SET promo_cost = promo_cost+ 100 WHERE promo_end_date >
TO_DATE(SUBSTR(’01-JAN-2000′,8));
D.
SELECT TO_CHAR(promo_begin_date,’dd/month’) FROM promotions WHERE
promo_begin_date IN (TO_DATE(‘JUN 01 98’), TO_DATE(‘JUL 01 98’));
this is a false answer; even the choose should be two instead of highlight all including the question itself.how? is it a kind of …..;
A and B are correct
A and B are correct.
—A Correct
select to_char(hire_date,’mon dd yyyy’) from employees
where to_char(hire_date,’mon dd yyyy’)<'jun 01 2002';
— B Correct
select to_char(hire_date) from employees
where to_char(hire_date,'mon dd yyyy')<'jun 01 2002';
—- C Wrong
select to_char(hire_date) from employees
where SUBSTR('01-JAN-2000',8);
select TO_DATE(SUBSTR(’01-JAN-2000′,8)) from dual;
— D Wrong
select to_char(hire_date) from employees
where hire_date IN (TO_DATE('JUN 01 98'), TO_DATE('JUL 01 98'));
Only A & B is correct!
Cleared Oracle Database 11g 1Z0-051 exam last weekend!
Scored 90%! (The passing score is 60%)
There were 64 questions in my actual 1Z0-051 test.
Many questions on SQL statements (Examine, Evaluate…etc.), Manipulating Data (Insert, Update, Delete), Using DDL Statements to Create and Manage Tables.
Also, please pay close attention to questions on Reporting Aggregated Data Using the Group Functions, Using Subqueries to Solve Queries, Creating Schema Objects, a little difficult!
I mainly learned the PassLeader 1Z0-051 dumps (http://www.passleader.com/1z0-051.html) (303q VCE and PDF), all questions were from it, and many wrong answers have been corrected in it, the most valid 1Z0-051 dumps! DO RECOMMEND!!
By the way, part of that 303q 1Z0-051 dumps are available here:
http://www.oraclebraindump.com/?s=1z0-051
(
p.s. More 1Z0-051 exam questions on Google Drive: drive.google.com/open?id=0B-ob6L_QjGLpWXpBUEhyRnVXVlE
)
Good Luck!!!