Skip to main content

1z0-071 Oracle Database 12c SQL Exam

  • Oracle
  • 5 free sample questions

About this exam

1z0-071 is the Oracle exam Oracle Database 12c SQL Exam. Paid practice material for this exam is not available yet, but you can try its free sample questions.

Exam code
1z0-071
Vendor
Oracle
Practice questions
Not available yet
Free sample questions
5
Question bank last updated
Not available yet

Try 1 sample question

Taken from the free sample set for 1z0-071.

Question 1

You execute this query:

SELECT TO CHAR (NEXT_DAY(LAST_DAY(SYSDATE),’MON’ ),’ dd“Monday for” fmMonth rrr’) FROM DUAL;

What is the result?

  1. Option A:

    It executes successfully but does not return any result.

  2. Option B:

    It returns the date for the first Monday of the next month.

  3. Option C:

    It generates an error.

  4. Option D:

    It returns the date for the last Monday of the current month.

Show answer and explanation

Correct answer: B

The query uses TO_CHAR and NEXT_DAY functions to format and determine dates:

    B. It returns the date for the first Monday of the next month: The function NEXT_DAY(LAST_DAY(SYSDATE), ' MON ' ) finds the next Monday after the last day of the current month, effectively giving the first Monday of the next month. The TO_CHAR formatting is used to return this in a readable format.

See all 5 free sample questions