use outer/cross apply
:
select *
from Employee as E
cross apply dbo.[StateFixedTaxesCalculation](3020, E.EmployeeId, 1, 1006) as TC
if you still have to filter by TC.EmployeeId = E.EmployeeId
, you can do this with subquery:
select *
from Employee as E
cross apply (
select TT.*
from dbo.[StateFixedTaxesCalculation](3020, E.EmployeeId, 1, 1006) as TT
where TT.EmployeeId = E.EmployeeId
) as TC
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…