Computing.Net > Forums > Programming > Help in select query

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Help in select query

Reply to Message Icon

Name: secrets
Date: September 22, 2004 at 02:04:03 Pacific
OS: Windows
CPU/Ram: 1.0
Comment:

in my table i have two fields named l_series and h_series text.
now i got a value of say some thing like st101 which should be b/w l_series and h_series how can i made a select query of this.



Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: September 22, 2004 at 07:26:33 Pacific
Reply:

Maybe you can restate your question? What does b/w mean? To me it means "black & white"?

Maybe it means "between". Do you mean that you want a query that returns rows where "st101" is between the values of l&h_series??



0

Response Number 2
Name: secrets
Date: September 22, 2004 at 17:57:58 Pacific
Reply:

Don Arnett,
thats my question as you said:
where "st101" is between the values of l&h_series?


0

Response Number 3
Name: Infinite Recursion
Date: September 23, 2004 at 14:06:40 Pacific
Reply:

my guess would be something like this, where X is a variable.

select * from your_table where 'X' is between l_series and h_series;


0

Response Number 4
Name: Don Arnett
Date: September 24, 2004 at 14:37:11 Pacific
Reply:

Of if your version of SQL doesn't support "between":

select *
from table
where X >= l_series
and X <= h_series;


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Help in select query

C#Need help ;date selection formula www.computing.net/answers/programming/cneed-help-date-selection-formula/7589.html

Help in JAVA program www.computing.net/answers/programming/help-in-java-program/85.html

if u Need help in VB email me www.computing.net/answers/programming/if-u-need-help-in-vb-email-me/1201.html