Thread
:
Display data within data range?
View Single Post
#
2
(
permalink
)
June 9th, 2006, 11:34 AM
rstelma
Friend of Wrox
Points: 1,890, Level: 17
Activity: 7%
Join Date: Jul 2003
Location: , , .
Posts: 559
Thanks: 6
Thanked 1 Time in 1 Post
You're syntax for using BETWEEN is not correct.
Here's an example:
USE pubs
GO
SELECT title_id, ytd_sales
FROM titles
WHERE ytd_sales BETWEEN 4095 AND 12000
GO
This syntax is in the BOL.
rstelma
View Public Profile
Find all posts by rstelma