Hi
I have a problem where i want to change the select statement where clause upon a condition
declare @finyr int
select @finyr = 2002
select acct_no
from acct_mast
where case when month(deposit_dt) > 3
then (year(deposit_dt) + 1) >= @finyr
else year(deposit_dt) >= @finyr
end
This query doesn't work !!!!!!!
Thanx in advance!!!!
I have a problem where i want to change the select statement where clause upon a condition
declare @finyr int
select @finyr = 2002
select acct_no
from acct_mast
where case when month(deposit_dt) > 3
then (year(deposit_dt) + 1) >= @finyr
else year(deposit_dt) >= @finyr
end
This query doesn't work !!!!!!!
Thanx in advance!!!!