I am trying to select the IDs based on period and type of account.Each account type would have a different period. I tried the following code but it didnt like the < operator
You can't use CASE to swap out arbitrary bits of the query. You would need to use
CASE
SELECT ID, Period, Type FROM TABLE1 WHERE (Type='ASSET' AND Period < @inputperiod ) OR (Type='Liability' AND Period BETWEEN @start AND @enddate)