QuestionQ85

VerifiedRestricting and sorting data

The STORES table includes a START_DATE column of data type DATE, which stores the date on which the row was inserted.

You want to display details only for rows whose START_DATE falls within the past 25 months.

Which WHERE clause can be used?

Explanation

MONTHS_BETWEEN(SYSDATE, start_date) calculates the elapsed number of months from START_DATE to the current date. A value of 25 or less identifies a date within the preceding 25 months.

Community Discussion

No comments yet. Be the first to start the discussion!