为什么这给了我一个零误差的鸿沟?我希望这个返回的数据库中的记录数与声明的参数。谢谢您的帮助。为什么这给了我一个由零误差划分
SELECT COUNT(*)
FROM dbcrms.ccars.ci_submission_history
where crms_dt = '2016-12-31'
and totalliabilities <> null or totalliabilities <> 0
and mra_required = 'Yes'
and committedexposure/totalliabilities <= 1
我使用SQL Server 2014
因为您忘记了括号 –
总值为零 – Bestter
因为至少有一行的总可用性值为0并且没有括号。 –