Valid 1z0-071 Dumps shared by ExamDiscuss.com for Helping Passing 1z0-071 Exam! ExamDiscuss.com now offer the newest 1z0-071 exam dumps, the ExamDiscuss.com 1z0-071 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1z0-071 dumps with Test Engine here:
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?
Correct Answer: B
When you need to compare dates and calculate the difference in months between two dates, you use the MONTHS_BETWEEN function in Oracle SQL. A). This statement is incorrect because MONTHS_BETWEEN takes the later date first, then the earlier date. B). This statement is correct. The MONTHS_BETWEEN function returns the number of months between two dates. It takes the later date (in this case, SYSDATE) first and the earlier date (start_date) second. If the start_date is within the last 25 months, the result will be less than or equal to 25. C). This statement is incorrect. The expression TO_NUMBER(start_date - SYSDATE) would not give the correct number of months between the dates. D). This statement is incorrect. The ADD_MONTHS(start_date, 25) function adds 25 months to start_date, and comparing it to SYSDATE would show dates that are at least 25 months in the future.