CAST(SaleQty AS INT)-CAST(ISNULL( Qty,0) AS INT) CountQty
select ISNULL( CAST(E.Qty AS INT),0 ) FROM OrderDetail E 空值 需要默认为0 即可
CAST(SaleQty AS INT)-CAST(ISNULL( Qty,0) AS INT) CountQty
select ISNULL( CAST(E.Qty AS INT),0 ) FROM OrderDetail E 空值 需要默认为0 即可