on 10-01-2008 8:11 AM
Hi Gurus,
Please check below conditon here two if statements are there
if a>b then Result = c - d
if c<=d then Result = 0
How to write if statement in Query designer
Regards,
Ram
Hi Ram,
if a>b then Result = c - d
if c<=d then Result = 0
Use Boolean operation to achieve same.
(if ( (if a>b)*(c-d) ) > 0) gives value C - D if C > D.
Hope it Helps
Srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did u mean this?
If a>b then
if c<=d then
Result = 0.
else Result = c-d.
If it is so, then you can try the following:
(a>b)(((c-d)>0)(c-d))
Regards,
Anjana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(a>b)(c - d) + (c<=d)0
You need to even write the condition for
(a>b)(c - d) + (c<=d)0+ (a<=b)* ? + (c>d)*?
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.