oracle中fetch数据老化90天以上
Fetch data ageing for more than 90 days in oracle
我想在 oracle 中获取从今天开始超过 90 天的数据。所以我写了下面的查询来获取数据。
select a.span_id, a.link_id, b.rejected_date
from tbl_fiber_inv_jobs a
inner join tbl_fiber_inv_job_progress b
on a.job_id = b.job_id
where b.rejected_date is not null
and b.rejected_date >= TRUNC(sysdate)-90;
但是它没有正确获取数据。请让我知道我是否正在编写正确的查询来获取数据。
I want to get data in oracle for more than 90 days from todays date
对我来说,它看起来像
and b.rejected_date <= TRUNC(sysdate)-90
我想在 oracle 中获取从今天开始超过 90 天的数据。所以我写了下面的查询来获取数据。
select a.span_id, a.link_id, b.rejected_date
from tbl_fiber_inv_jobs a
inner join tbl_fiber_inv_job_progress b
on a.job_id = b.job_id
where b.rejected_date is not null
and b.rejected_date >= TRUNC(sysdate)-90;
但是它没有正确获取数据。请让我知道我是否正在编写正确的查询来获取数据。
I want to get data in oracle for more than 90 days from todays date
对我来说,它看起来像
and b.rejected_date <= TRUNC(sysdate)-90