exam questions

Exam 1z0-082 All Questions

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

Exam 1z0-082 topic 1 question 123 discussion

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

The STORES table has a column START_DATE of data type DATE, containing the date the row was inserted.

You only want to display details of rows where START_DATE is within the last 25 months.

Which WHERE clause can be used?

  • A. WHERE ADD_MONTHS(start_date, 25) <= SYSDATE
  • B. WHERE MONTHS_BETWEEN(start_date, SYSDATE) <= 25
  • C. WHERE MONTHS_BETWEEN(SYSDATE, start_date) <=25
  • D. WHERE TO_NUMBER(start date - SYSDATE) <= 25
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
Jinas
5 months, 1 week ago
C is correct
upvoted 1 times
...
auwia
6 months, 4 weeks ago
Selected Answer: C
Provided answer is wrong. C is correct. -- Creating the table CREATE TABLE STORES ( ID NUMBER, NAME VARCHAR2(50), START_DATE DATE ); -- Inserting data into the table INSERT INTO STORES VALUES (1, 'Store 1', SYSDATE); INSERT INTO STORES VALUES (2, 'Store 2', ADD_MONTHS(SYSDATE, -10)); INSERT INTO STORES VALUES (3, 'Store 3', ADD_MONTHS(SYSDATE, -20)); INSERT INTO STORES VALUES (4, 'Store 4', ADD_MONTHS(SYSDATE, -30)); -- Commit to save data COMMIT; -- Selecting rows where START_DATE is within the last 25 months SELECT * FROM STORES WHERE MONTHS_BETWEEN(SYSDATE, START_DATE) <= 25;
upvoted 1 times
...
fdelasie
8 months ago
A is correct, in C id start_date > sysdate MONTHS_BETWEEN is negative and <= 25
upvoted 1 times
...
Dragon67
8 months, 2 weeks ago
when i execute C, i get no row selected, but when i execute B, i get a value, i dont understand why, so i have no choice than to select B as answer.
upvoted 1 times
...
ivanadj
11 months, 2 weeks ago
https://www.examtopics.com/exams/oracle/1z0-071/view/2/
upvoted 1 times
...
ivanadj
11 months, 3 weeks ago
Selected Answer: C
The same question as question 10 in 1z0-071. The answer is C.
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