行重复说我有2列:筛选出基于列
Fruit Condition
apple unripe
banana ripe
apple ripe
banana moldy
peach moldy
peach ripe
apple ripe
pineapple soldout
,我只是想知道哪些水果或者是成熟或未成熟和不发霉或售罄(只有苹果)
Select fruit
from example
where (condition <> 'moldy' or condition <> 'soldout')
and (condition = 'ripe' or condition = 'unripe')
group by fruit
不工作
这是事实,但它仍然不能解决我的情况。 –
@JacobAlley查看更新 – JohnHC