大家。我希望crm系统返回角色号为1600,1700和1800且没有被攻击的所有承诺捐赠者(tildato = attrited)
(aktorid from fadderskap where rollenr = 1600
or aktorid from fadderskap where rollenr = 1700
or aktorid from fadderskap where rollenr = 1800)
and nvl(tildato, trunc(sysdate) + 1) >= trunc(sysdate)
答案 0 :(得分:2)
您使用的是一些我没有听说过的dbms,或者您有语法问题..所以请尝试这个查询:
aktorid from fadderskap
where rollenr in (1600,1700,1800)
and nvl(tildato, trunc(sysdate) + 1) >= trunc(sysdate)