标签: sql
select t.TransCode, avg(d.SetupDate - t.MonthPosted) as avgdate from Debtor as D join Trans as T on T.DebtorNo = D.LogonID where t.TransCode in ('411', '412', '413', '416') group by t.TransCode
我正在
操作数数据类型日期对于减法运算符无效。