我有一张Policies桌子。
Policies
现在我需要在10 月份获得所有待处理Policies的 a和所有已发出的a 。pendDateOctoberPoliciesissueDate
pendDate
October
issueDate
我在用着postgreSQL 9.6。这些日期可以为空,所以我不能使用简单的AND. 那个月我只需要 和pending,issued所以 OR 不起作用。
postgreSQL 9.6
AND
pending
issued
我解决了两个查询,但现在正在添加更多状态,我想以某种方式进行整合。可能的?
postgresql postgresql-9.6
postgresql ×1
postgresql-9.6 ×1