exam questions

Exam 1z0-082 All Questions

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

Exam 1z0-082 topic 1 question 86 discussion

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

You execute this query:
SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd `Monday for` fmMonth rrrr')
What is the result?

  • A. It executes successfully but does not return any result
  • B. It returns the date for the first Monday of the next month
  • C. It generates an error
  • D. It returns the date for the last Monday of the current month
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
zouve
Highly Voted 10 months ago
Selected Answer: B
the correct query is SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "Monday for" fmMonth rrrr') FROM DUAL; I had this question also on the 1Z0-071 exam.
upvoted 6 times
...
khaleesi89
Most Recent 2 weeks, 3 days ago
Selected Answer: B
I had this question also on the 1Z0-071 exam taken on May 21, 2024 and the query was SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "Monday for" fmMonth rrrr') FROM DUAL; SO the correct answer in B.
upvoted 1 times
...
[Removed]
3 weeks, 5 days ago
Selected Answer: C
Tested on May 15, 2024 via below: https://livesql.oracle.com/apex/f?p=590:1:103395717088091:::RP::# Command: SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "Monday for" fmMonth rrrr') Error: ORA-00923: FROM keyword not found where expected Command: SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "Monday for" fmMonth rrrr') FROM DUAL Result: TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE),'MON'),'DD"MONDAYFOR"FMMONTHRRRR') 03 Monday for June 2024
upvoted 1 times
...
Oracle2020
2 months, 1 week ago
c is correct, because it generates an error, the query does not have the FROM keyword
upvoted 1 times
...
8hyehye8
2 months, 1 week ago
Selected Answer: C
ORA-01846: 01846. 00000 - "not a valid day of the week"
upvoted 1 times
...
musafir
10 months, 2 weeks ago
Selected Answer: C
C is correct since FROM DUAL is missing and ( 'Monday for') should actually be ("Monday for"). Could be an issue where the website didn't post the question correctly. I've seen this question in 071 exam which has the correct format but different answers. https://www.examtopics.com/discussions/oracle/view/32798-exam-1z0-071-topic-2-question-17-discussion/
upvoted 1 times
...
BeomK
1 year, 1 month ago
B is correct. SQL> SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "Monday for" fmMonth rrrr') from dual; TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE),'MON'),'DD"MONDAYFOR"FMMONTHRRRR') -------------------------------------------------------------------------------- 01 Monday for May 2023
upvoted 2 times
...
Guhborges
1 year, 2 months ago
The correc query: SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "Monday for" fmMonth rrrr') from dual; B is right.
upvoted 2 times
...
ivanadj
1 year, 3 months ago
Selected Answer: C
SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd `Monday for` fmMonth rrrr') from dual; SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd `Monday for` fmMonth rrrr') from dual * ERROR at line 1: ORA-01821: date format not recognized
upvoted 1 times
...
stefan_a
1 year, 4 months ago
Selected Answer: C
C - it generates an error, even if FROM dual is added. SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd `Monday for` fmMonth rrrr') returns ORA-00923: FROM keyword not found where expected SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd `Monday for` fmMonth rrrr') FROM dual; returns ORA-01821: date format not recognized
upvoted 1 times
Guhborges
1 year, 3 months ago
It was probably a mistake when moving to the website, some characters are wrong. For me, the righ answers is B.
upvoted 1 times
...
...
Wh0au
1 year, 8 months ago
FROM DUAL; must be added after the query statement so answer is B
upvoted 3 times
...
steves
1 year, 9 months ago
I think answer should be C. There is no from clause!
upvoted 3 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