0

我有两个日期,我想检查CLO/LO issued date past 14 days grace period fall in the reporting period.我有两个日期的情况。我试过条件

LOSA_CR_DETAIL_Z.lo_dt > 14 + (:endDate - :startDate)

但这给了我错误

ORA-00932: inconsistent datatypes: expected DATE got NUMBER
00932. 00000 -  "inconsistent datatypes: expected %s got %s"
*Cause:    
*Action:

我想这会给我 14 天而不是约会。我如何计算条件date > 14 days plus date

谢谢

4

1 回答 1

0

从您的查询的介绍来看,听起来您想检查是否LOSA_CR_DETAIL_Z.lo_dt + 14 day在特定的日期间隔内。

如果是这样,像这样的条件

LOSA_CR_DETAIL_Z.lo_dt + 14 BETWEEN :startDate AND :endDate

应该是你要找的。

于 2012-11-23T19:47:32.137 回答