| | |
lower and upper limit problem
Please support our MS SQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jan 2007
Posts: 22
Reputation:
Solved Threads: 3
Hi, you can use math comparison operators to select from a range of values, you can add an OR to the statement below to select from an additional range.
MS SQL Syntax (Toggle Plain Text)
SELECT * FROM TableName WHERE ([lower] >= 12 AND [upper] <= 20) OR ([lower] >= 100 AND [upper] <= 150)
![]() |
Similar Threads
Other Threads in the MS SQL Forum
- Previous Thread: Matching values present in my work DB in my Master DB
- Next Thread: Checking if combobox chosen value exists in Master DB
Views: 1075 | Replies: 2
| 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





