题目只提供了聘用日期
当前时间减去聘用时间不就是工龄?
当有多个员工,怎么用T-SQL语句实现呢
select (year(getdate()) - year(HireDate)) as workAge from employee
用 SQL 语句查询