0

我想选择所有Out_No这个条件does not exist

(event_type = 'COMMENT_CHANGE' and COMMENTS LIKE 'Cause:%')

样本查询

select 
       Out_no
from TableA
Where Out_no > '12345'
4

1 回答 1

0

我最终使用了这个问题的答案。

select out_no,
from TableA
where out_no > '12345'
and out_no not in
         ( select 
                  out_no
             from TableA
            where event_type = 'Comment_change' 
              and comments like 'Cause%'
         )
Order by out_no desc

希望它可以帮助别人。

于 2013-06-05T18:35:30.040 回答