SQL带有排除项的子句

时间:2017-07-19 19:40:15

标签: where-clause

您好我有一个代码,我排除了一些灾难代码但是我意识到我不应该只过滤那些代码和丢失的原因a.CauseOfLoss<> '170 - 所有其他责任'。我该如何更新where where子句?

WHERE (
    b.CatastropheCode <> '228' and
    b.CatastropheCode <> '312' and
    b.CatastropheCode <> '317' and
    b.CatastropheCode <> '525' and
    b.CatastropheCode <> '612' and
    b.CatastropheCode <> '615' and
    b.CatastropheCode <> '811' and
    b.CatastropheCode <> '916' and
    b.CatastropheCode <> '1012' and
    b.CatastropheCode <> '1113' and
    b.CatastropheCode <> 'MATT'
)

0 个答案:

没有答案