|
-
Nov 23rd, 2005, 02:16 PM
#1
Thread Starter
Hyperactive Member
How do I compare string?
Dear all,
How do I make a request such as list all the records from "ABC" to "DEF"?
Thanks
PlayKid
-
Nov 23rd, 2005, 02:22 PM
#2
Addicted Member
Re: How do I compare string?
SELECT * FROM SomeTable WHERE SomeColumn >= 'ABC' AND SomeColumn <='DEF'
should be about right
There are no stupid questions, but a whole bunch of dumb sayings !
Save time on database code, try DataLG !
-
Nov 23rd, 2005, 02:22 PM
#3
Re: How do I compare string?
In a SQL Statement?
Here's an example using Northwind:
SELECT * FROM dbo.Customers WHERE CompanyName between 'LA' and 'PR'
Last edited by sevenhalo; Nov 23rd, 2005 at 02:26 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|