-2

如何Total根据此查询选择没有负值的所需值?

在此处输入图像描述

第二行不应返回,因为该Total值小于 0。

SELECT DealerCode, PaymentType, Total  
FROM DEL_Purchases 
WHERE DealerCode = 'A0686P'
4

1 回答 1

2
select DealerCode, PaymentType, Total from DEL_Purchases 
where DealerCode='A0686P' and Total > 0
于 2013-10-03T03:50:43.663 回答