emi_sastra
asked on
Filter Data Tenor
Hi All,
I have a SP with filter, if @TENOR = 0 then filter data with Tenor 0, else Filter Data with Tenor > 0.
I try below :
AND H.Tenor =
IIF(@TENOR <> 0 AND H.Tenor > 0, H.Tenor, 0)
What's wrong with this ?
Thank you.
I have a SP with filter, if @TENOR = 0 then filter data with Tenor 0, else Filter Data with Tenor > 0.
I try below :
AND H.Tenor =
IIF(@TENOR <> 0 AND H.Tenor > 0, H.Tenor, 0)
What's wrong with this ?
Thank you.
what is your issue? are your variable/fields nullable?
ASKER
Hi Eric,
- what is your issue?
Not check to data yet.
Just want to make sure it is the correct way to do it.
- are your variable/fields nullable?
How to overcome this ?
Thank you.
- what is your issue?
Not check to data yet.
Just want to make sure it is the correct way to do it.
- are your variable/fields nullable?
How to overcome this ?
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Eric,
Thank very much for your help.
Thank very much for your help.