I thought it would be easy enough, but I just can't get around it.
I have a display / lookup table with two columns. Col1 is used to find values ββfrom Col2.
Col1 is a direct INT column with values ββin it increasing by 20 and starting at 500. Thus, it has values ββsuch as 500, 520, 540 and so on. Each of these values ββdisplays unique decimal values ββin Col2.
Now, when I run the queries, I get the values ββfor Col1, which are not increments of 20. Therefore, I will be asked to find a mapping from Col2 for a value such as 524.25. In this case, it must match the value in Col1 for 520 and return the corresponding decimal value from Col2. If this value was 530 or more, it should correspond to 540, etc.
Hope this makes sense. Thanks in advance.
Vikram Goal
source share