exam questions

Exam 1z0-061 All Questions

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

Exam 1z0-061 topic 3 question 7 discussion

Actual exam question from Oracle's 1z0-061
Question #: 7
Topic #: 3
[All 1z0-061 Questions]

Which SQL statement displays the date March 19, 2001 in a format that appears as "Nineteenth of March 2001 12:00:00 AM"?

  • A. SELECT TO_CHAR(TO_DATE('19-Mar-2001, DD-Mon-YYYY), fmDdspth "of" Month YYYY fmHH:MI:SS AM’) NEW_DATE . FROM dual;
  • B. SELECT TO_CHAR(TO_DATE(19-Mar-2001, DD-Mon-YYYY), Ddspth "of" Month YYYY fmHH:MI:SS AM’) NEW_DATE FROM dual;
  • C. SELECT TO_CHAR(TO_DATE(’19-Mar-2001’, ‘DD-Mon-YYYY’), ‘fmDdspth "of" Month YYYY HH:MI:SS AM) NEW_DATE FROM dual;
  • D. SELECT TO_CHAR(TO_DATE(’19-Mar-2001’, ‘DD-Mon-YYYY), ‘fmDdspth "of" Month YYYYfmtHH:HI:SS AM') NEW_DATE FROM dual;
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
qayaza
5 years, 2 months ago
D is the correct answer.
upvoted 1 times
...
bisiha
5 years, 4 months ago
SELECT TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'),'fmDdspth "of" Month YYYY fmHH:MI:SS AM') NEW_DATE FROM dual; Correct answer
upvoted 2 times
...
hggz
5 years, 7 months ago
Answer is correct, you can check what is difference: SELECT 1, TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'fmDdspth "of" Month YYYY fmHH:MI:SS AM') NEW_DATE FROM dual union SELECT 2, TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'Ddspth "of" Month YYYY fmHH:MI:SS AM') NEW_DATE FROM dual union SELECT 3, TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'fmDdspth "of" Month YYYY HH:MI:SS AM') NEW_DATE FROM dual; Last - wrong syntax SELECT TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'fmDdspth "of" Month YYYY HH:HI:SS AM') NEW_DATE FROM dual;
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