出于某种原因,这给了我一个空的结果。
Table
ppb_id ppb_no ppb_date
100 1 (null)
100 2 2013-08-28 00:00:00
101 1 2013-08-28 00:00:00
101 2 2013-08-28 00:00:00
select ppb_id from ppb
where (ppb_no = 1 and ppb_date is null) and (ppb_no = 2 and ppb_date is not null)
你能告诉我我做错了什么吗?