Groups | Blog | Home
all groups > sql server reporting services > july 2006 >

sql server reporting services : Between Date Query


Samson
7/20/2006 4:23:01 PM
How would I make a query that checks for all dates using a feature that
automatically selects todays date and then 14 days in the future. Meaning
all records between today and 14 days in the future.

magendo_man
7/21/2006 12:57:01 AM
The SQL should read something like:

SELECT *
FROM MyTable
WHERE MyDateField BETWEEN GETDATE() AND DATEADD(Day, 14, GETDATE())

HTH,
Magendo_man

[quoted text, click to view]
Samson
7/21/2006 4:51:02 PM
thank you. it worked

[quoted text, click to view]
AddThis Social Bookmark Button