INPUT:私のO/P ID STATUS YEAR MONTH
A OPEN1 2017-01
A OPEN2 2017-01
A CLOSED 2017-03
B OPEN1 2017-01
B OPEN2 2017-02
B OPEN3 2017-02
B Closed 2017-05
: 2017から02の場合: (
私持っている条件はどこ最後を除いて、動作しているようだ次のクエリ、: WHERE
((T2."WhsCode" = ('03') OR T2."WhsCode" = ('33'))
AND
((T1."WhsCode" <> ('03') OR T1."WhsCode" <> ('33'))
OR
T0."DocNum" IS NULL))