Oracle
1Z0-071 · Question #370
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?…
The correct answer is A. WHERE TO_CHAR(order_date, 'MON DD YYYY') = 'JAN 20 2019' B. WHERE order_date > TO_DATE('JUL 10 2018', 'MON DD YYYY'). https://ss64.com/ora/syntax-to_date.html
Using Conversion Functions and Conditional Expressions
Question
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.)
Options
- AWHERE TO_CHAR(order_date, 'MON DD YYYY') = 'JAN 20 2019'
- BWHERE order_date > TO_DATE('JUL 10 2018', 'MON DD YYYY')
- CWHERE order_date > TO_CHAR(ADD_MONTHS(SYSDATE,6), 'MON DD YYYY')
- DWHERE order_date > TO_DATE(ADD_MONTHS(SYSDATE,6), 'MON DD YYYY')
- EWHERE order_date IN (TO_DATE('OCT 21 2018', 'Mon DD YYYY'), TO_CHAR('Nov 21 2018',
How the community answered
(56 responses)- A71% (40)
- C7% (4)
- D5% (3)
- E16% (9)
Explanation
Topics
#TO_CHAR#TO_DATE#date conversion functions#WHERE clause filtering
Community Discussion
No community discussion yet for this question.