M
Marco
Hello. I need to create a querie that analise a a specific value and compare
to some standards. Well, I was able to create this querie if the were no such
specifications.
Imagine that I have a value, i.e.: 1.50
My standards columns are:
UMin; Min; Nom; Max; UMax.
If the value if less then UMIn or bigger then Umax the value should be
represented like this *1.50*.
If the value is bigger then UMin and less then Min or Less the UMax and
bigger the Max should be represented like this *1.50.
If the value is between Max and Min should be represented like this 1.50.
Now it comes the problem. Something there's no value on Umin or Umax Or Min
or Max. In this cases I can't use zero, because is a number and the SQL
querie would think that should compare with it.
What I wanted is, if one of these standards were zero, the querie wouldn't
count with it.
Imagine that I have a standard value on Min but not on Umin I want that my
querie analizes only the Min and forget the UMin. I even tought to say: " if
it 0 then that stand would be something like -1000 or 1000. but for some
reason I may have standards on Umax but not on Max.
Imagine this case: Value to compare: 1.30
UMin Min Nom Max UMax
0.90 1.00 1.10 1.20 0
In this case the result should be *1.30 » In this case, my value is bigger
then 1.20 and bigger then Umax. But as UMax is zero, it means that is not to
be compared with that standard.
Please help me.
Regards in avance,
Marco
to some standards. Well, I was able to create this querie if the were no such
specifications.
Imagine that I have a value, i.e.: 1.50
My standards columns are:
UMin; Min; Nom; Max; UMax.
If the value if less then UMIn or bigger then Umax the value should be
represented like this *1.50*.
If the value is bigger then UMin and less then Min or Less the UMax and
bigger the Max should be represented like this *1.50.
If the value is between Max and Min should be represented like this 1.50.
Now it comes the problem. Something there's no value on Umin or Umax Or Min
or Max. In this cases I can't use zero, because is a number and the SQL
querie would think that should compare with it.
What I wanted is, if one of these standards were zero, the querie wouldn't
count with it.
Imagine that I have a standard value on Min but not on Umin I want that my
querie analizes only the Min and forget the UMin. I even tought to say: " if
it 0 then that stand would be something like -1000 or 1000. but for some
reason I may have standards on Umax but not on Max.
Imagine this case: Value to compare: 1.30
UMin Min Nom Max UMax
0.90 1.00 1.10 1.20 0
In this case the result should be *1.30 » In this case, my value is bigger
then 1.20 and bigger then Umax. But as UMax is zero, it means that is not to
be compared with that standard.
Please help me.
Regards in avance,
Marco