ABS函数 去掉金额字段值为负数问题

select  SUM(ISNULL(ABS(ShopAmount),0))   from  OrderDetail

 

原文地址:https://www.cnblogs.com/Warmsunshine/p/11121290.html