Easy question… Is there any way to do a where clause comparing a number to two numbers in one statement? Something like this:
where 1000 > 500 > 300
The reason is, if I need to evaluate the 500 and it’s expensive this would save a lot of time over the alternative:
where 1000 > 500
and 500 > 300
You can write
or
but there is also hope that the database is clever enough to figure out that it has to do the calculation only once.