| | |
BETWEEN in WHERE Clause
Please support our MS SQL advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jun 2007
Posts: 44
Reputation:
Solved Threads: 3
•
•
•
•
It looks you have some alpha numeric upper and lower limits. You can look for the pattern of data to create a string and pass it to the query. Another way is to re-phrase the query but I am not too sure of the data and table size. If you can provide some more details I can try and look at it.
Thanks for reply.
I did it this way:
sql Syntax (Toggle Plain Text)
SELECT * FROM Results WHERE STID=111 AND (CASE WHEN (ISNUMERIC(ActualValue)=1) THEN CAST(ActualValue AS FLOAT) ELSE 0 END) NOT BETWEEN LowerLimit AND HigherLimit
Last edited by peter_budo; May 23rd, 2008 at 12:06 pm. Reason: Keep It Organized - please use [code] tags
![]() |
Similar Threads
- Syntax error in FROM clause. (VB.NET)
- SQL query problem with WHERE clause (ASP)
- Range of records in Top clause (MS SQL)
- purpose of exception handling 'finally' clause (Java)
- Throws Clause (Java)
Other Threads in the MS SQL Forum
- Previous Thread: Sybase-Insert getdate()
- Next Thread: One column value to multiple rows
| Thread Tools | Search this Thread |





