Hi folks,
I've been wracking my brain to see if I can work a solution into a problem I've been tasked with and so far haven't come up with much.
I've got a simple form, one free text input and an output along with a button to fire off a query and return the answer.
The table I'm using contains financial companies and an allocation for upto 199 consultants per company. The user enters a number between a range and the company name should appear in the output box - here's the table...
Name sRange eRange
Essential Health 20000 20199
Tenon Financial 20200 20399
Protection Plus 20400 20599
So I need to be able to enter 20011 in the input, press a button and have Essential Health returned, this is a small example, I have over 50 companies and thought that having two columns with the 'start' and 'end' range numbers the easiest to manage - I could be wrong!
Is there a way to do a SQL Select query using this method?
Thanks in advance,
Jon
I've been wracking my brain to see if I can work a solution into a problem I've been tasked with and so far haven't come up with much.
I've got a simple form, one free text input and an output along with a button to fire off a query and return the answer.
The table I'm using contains financial companies and an allocation for upto 199 consultants per company. The user enters a number between a range and the company name should appear in the output box - here's the table...
Name sRange eRange
Essential Health 20000 20199
Tenon Financial 20200 20399
Protection Plus 20400 20599
So I need to be able to enter 20011 in the input, press a button and have Essential Health returned, this is a small example, I have over 50 companies and thought that having two columns with the 'start' and 'end' range numbers the easiest to manage - I could be wrong!
Is there a way to do a SQL Select query using this method?
Thanks in advance,
Jon