Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
1.20/5 (2 votes)
I know how to select records between range in SQL server but I want to select the record between the range but it should not consider the boundary values.



lower limit 20 upper limit 25


Here I want records which have values 21 to 34
Posted
Comments
Thava Rajan 12-Jun-14 5:20am    
is ti 34 or 24 is it the id in a table or just record number need some clarification
Magic Wonder 12-Jun-14 5:27am    
You can simply make use of > and < in your where conditions.
SRS(The Coder) 12-Jun-14 6:07am    
Can you please paste your query here, to give an idea what exactly you want.
From your current perspective what 'Magic Wonder' suggested looks to be working..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900