Microsoft
Software
Hardware
Network
Question : Correct syntax for SQL between-like query
I am trying to structure a query in a stored proc to handle an incoming zip code as follows: zip comes in and I need to search rule table to see if the zip value is between a value in BeginRange column and EndRange column. So if 77400 comes in and a record exists where BeginRange column is 77890 and EndRange column is 77405, the record is found. I can't quite see how the BETWEEN clause would work? Can someone get me unstuck with the correct query syntax?
Answer : Correct syntax for SQL between-like query
this will do:
WHERE EndRange >= 77440
AND BeginRange <= 77440
OR
WHERE 77440 BETWEEN BeginRange AND EndRange
Random Solutions
Turn On Shortcut keys selectively to export report.
Change CommonProgramFiles
Problems Showing a JPG
I am unable to open word or excell folders in microsoft office professional 2007. There appears to be a problem with the encryption. I will attache a couple of examples.
Server rebooting with Error code Error code 000000d1, parameter1 00000004, parameter2 d0000009, parameter3 00000000, parameter4 f737bb85.
How to copy field data to anotehr field
macro to insert headers
Why wont a hp laptop power up?
How can I relocate the WSUS content databases to another server? Please advise
Does SqlServer support Cascade delete?