Hi,
the declare statement declares the variable named @date, and the select statement asigns a value to that variable.
So my @date varibale, after completing the select statement , will have the current date as given by the getdate() function.
What I'm trying to do is make the DB do the work with some date processing I'm doing, rather than PHP, as the result set is quite large.
Jen