There is a query in Oracle
select krt_log from t_trm_log, (select to_date('YYYYMMDD')a from dual) dl where tm>decode(dl.a, to_date('20150203', 'YYYYMMDD'), trunc(sysdate, 'DD'), dl.a) order by id desc This request is used to generate a report, it is required to modify it in order not to enter the date in the format 20150203 , but to write the number of days, for example, 10 days and so that a larger number of days would not be available. Who prompts, thanks in advance.
tm? and 10 days from what? from the current time? - Anton Komyshansysdate - tm(assuming that tm data type is date) - Mike