View Single Post
  #2 (permalink)  
Old June 9th, 2006, 11:34 AM
rstelma rstelma is offline
Friend of Wrox
Points: 1,890, Level: 17
Points: 1,890, Level: 17 Points: 1,890, Level: 17 Points: 1,890, Level: 17
Activity: 7%
Activity: 7% Activity: 7% Activity: 7%
 
Join Date: Jul 2003
Location: , , .
Posts: 559
Thanks: 6
Thanked 1 Time in 1 Post
Default

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.


Reply With Quote