Hiya fellas,
Is there a thread out there giving any hint or information on string compares.
I need to find the nearest match on some numbers and using it do one other computation.
for example : breakno = 1234
next breakno = 12346
using an index (known) and having a number like '12345' for comparison to the breakno.
If 12345 does not exist and it checks 12346 but not equal,
1234 being the nearest I need to return the assocaited field. Any thoughts? Could LIKE be used for this or do I need to go more in depth?
Thanks in advance,
rtdvoip
Is there a thread out there giving any hint or information on string compares.
I need to find the nearest match on some numbers and using it do one other computation.
for example : breakno = 1234
next breakno = 12346
using an index (known) and having a number like '12345' for comparison to the breakno.
If 12345 does not exist and it checks 12346 but not equal,
1234 being the nearest I need to return the assocaited field. Any thoughts? Could LIKE be used for this or do I need to go more in depth?
Thanks in advance,
rtdvoip