| | |
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
Views: 1436 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for MS SQL
"last autogrowth business connectingtodatabaseinuse count cursor data database dateadd datepart day" dbsize deadlock delete_trigger exploit getdate hack highperformancecomputing hpc hpcserver2008 ibm iis limit live loop maximum microsoft ms mssql multiple multithreading news number password permission position query reporting result security server services sets single source sql sql-injection sqlserver sqlserver2005 subtype supercomputing supertype tables uniqueid update view weekday





