from Finance.dbo.vtbl_orbt sal inner join Finance.dbo.tbl_Period_Lookup ht on ht.Current_Period = @Current_Period where sal.SGPERI between ht.P_Minus_30 and ht.Current_Period
from Finance.dbo.vtbl_orbt sal inner join Finance.dbo.tbl_Period_Lookup ht on ht.Current_Period = sal.SGPERI where sal.SGPERI between ht.P_Minus_30 and @Current_Period
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)