I have a column that stores the last modified date. I want to check an SQL query if its value exceeds 2 months from the current date.
I know that I need to use SYSDATE, but I am not familiar with the date material in Oracle, so I'm not sure about the rest.
SELECT * from table where date_column >= add_months(TRUNC(SYSDATE) + 1, 2);
try it
SELECT field1,field2 from yourtable where field_date > add_months(SYSDATE, 2);
Bye
WHERE, 13 . , 3/11/2011, 2/1/2011 EOD 2/28/2011.
SELECT * FROM [my-table] WHERE [date-field] BETWEEN TRUNC (ADD_MONTHS (SYSDATE, -13), 'MM') AND TRUNC (LAST_DAY (ADD_MONTHS (SYSDATE, -1))+1)
Source: https://habr.com/ru/post/1714983/More articles:Ошибка генерации PHP heredoc - stringT-SQL Get File Over HTTP? - sqlМогу ли я добавить компилятор linq в свой проект? - compiler-constructionJQuery: selection within a selection - jquery"The database may not be activated or may be in a transition state" - sqlMultiple entry point (main class) for the client application jar - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1714985/how-can-i-achieve-traceability-in-a-git-server-repository&usg=ALkJrhjDKEDkEC-EseinUqEwHJlarQyFgAHow to emulate window title bar in CSS / HTML - htmldocument.getElementById(все еще) не работает - javascriptdocument.getElementById not working - javascriptAll Articles