Link to home
Start Free TrialLog in
Avatar of emi_sastra
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.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

what is your issue? are your variable/fields nullable?
Avatar of emi_sastra
emi_sastra

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.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Eric,

Thank very much for your help.