我通过取消强制转换函数得到错误的结果。它应该很简单,但我无法弄清楚。需要帮忙。
SELECT PRCo, Employee, LastName, FirstName, MidName, SortName, SSN, HireDate, DATEDIFF(month, HireDate, GETDATE()) / 12 AS Years,
CAST((80/2080) as decimal(10, 5))
FROM AAAA
80/2080
列应该是0.038470
,但它显示0.00000
所有记录