目前我有一个相当大的查询,我缺少一个元素......我需要将数据减少到小数点后两位(不需要四舍五入)。我用谷歌搜索,但无法将其适应当前查询。
SELECT
FechaDeSistema, Code,
CASE
WHEN DR_Socio = @SocioNum THEN Cantidad
END as Debit,
CASE
WHEN CR_Socio = @SocioNum THEN Cantidad
END AS Credit,
CASE
WHEN DR_Socio = @SocioNum THEN BalanceDebito
WHEN CR_Socio = @SocioNum THEN BalanceCredito
END AS Balance
FROM
Ledger
WHERE
(Debito_Cuenta = @Acct) OR
(Credito_Cuenta = @Ncct)
ORDER BY
FechaDeSistema DESC
我基本上需要将贷记和借记“案例”(您是这么说的吗?)截断到小数点后两位。我怎么能把它拉下来?提前致谢!