Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-04-03 : 09:51:42
|
| Meeta writes "I would like to obtain a range of values, for example I want to display all categories starting from A to D. I used "between" but does not give the correct values, like this:SELECT * FROM tryWHERE (category BETWEEN 'a%' AND 'C%')this return values from A to B only. This also does not work for numbers.Is there any other way" |
|
|
Jay99
468 Posts |
Posted - 2002-04-03 : 10:26:51
|
how aboutselect <columnlist>from trywhere left(category,1) between 'a' and 'c' Jay<O> |
 |
|
|
Nazim
A custom title
1408 Posts |
|
|
|
|
|