exam questions

Exam 1z0-082 All Questions

View all questions & answers for the 1z0-082 exam

Exam 1z0-082 topic 1 question 108 discussion

Actual exam question from Oracle's 1z0-082
Question #: 108
Topic #: 1
[All 1z0-082 Questions]

18. The orders table has a column ORDER_DATE of data type DATE.

The default display format for a date is DD-MON-RR.

Which two WHERE conditions demonstrate the correct usage of conversion functions? (Choose two.)

  • A. WHERE order_date > TO_DATE(ADD_MONTHS(SYSDATE, 6), 'MON DD YYYY')
  • B. WHERE order dare > TO DATE('JUL 10 2018', 'MON DD YYYY')
  • C. WHERE TO_CHAR(order date, 'MON DD YYYY') = 'JAN 20 2019'
  • D. WHERE order_date > TO_CHAR(ADD_MONTHS(SYSDATE, 6), 'MON DD YYYY')
  • E. WHERE order_date IN (TO_DATE('Oct 21 2018', 'Mon DD YYYY'), TO_CHAR('Nov 21 2018', 'Mon DD YYYY'))
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
auwia
7 months ago
All are wrong! Someone should fix the text :-)
upvoted 1 times
...
RaNik69
8 months, 2 weeks ago
Selected Answer: BC
b c are correct if ORDER DARE >> ORDER_DATE
upvoted 1 times
...
BeomK
9 months, 1 week ago
B,C is correct. A. false - ORA-01843: not a valid month B. true - TO DATE >> TO_DATA : wrong entry?? - Normal operation after modification C. true - Normal operation after modification D. false - ORA-01858: a non-numeric character was found where a numeric was expected E. false - ORA-01722: invalid number
upvoted 2 times
...
j_tw
9 months, 4 weeks ago
I think C & E are correct. A(false) - ADD_MONTHS(SYSDATE, 6) is already DATE type, so it will be an error to use TO_DATE function. B(false) - same as A C(true) D(false) - It can't be possible to compare diffrent data type. ( date > string ) E(maybe true) Am I wrong?
upvoted 1 times
j_tw
9 months, 2 weeks ago
NVM this comment. I perfectly misunderstood about TO_DATE function. BC may be correct
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago