SQL Server - Variables Date Range
<p>I would like to pull back the last seven days of data. </p>

<pre><code>Declare @DateRange Datetime
Set     @DateRange = DateAdd(DD,-7, GetDate())


WHERE CreateDate = @DateRange
</code></pre>

<p>The above script is not working. How would I properly create this syntax and filter on the data in my where clause? </p>