declare @t table(日期 datetime,小计金额 numeric(18,2))
insert @t
select '2005-10-28',18.50 union all
select '2006-01-02',568.03 union all
select '2006-02-08',4562.01 union all
select '2006-03-08',1000
select *,
datediff(d,日期,getdate())*0.01 * 小计金额 as 滞纳金金额
from @t