on 03-07-2019 9:23 PM
I am trying to get the last day in the previous month, I am using the using below SQL, it is giving the today's date in last month, but not the last day of the month.
SELECT ADD_MONTHS_LAST (CURRENT_DATE, -1) FROM DUMMY ;
I am not finding any difference of using, ADD_MONTHS() and ADD_MONTHS_LAST() with CURRENT_DATE.
the official documentation explaining an example, which has the last day in the date, so it does not explain behavior working,
do you know why this is? or I am missing something?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sreekanth - For your requirement
User | Count |
---|---|
81 | |
11 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.