title: Variable in a query
body: <p>I have a query in which I will have a variable, so I want to declare the variable in the beginning. My variable type is a date.</p>
  
  <p>I want to have something like this:</p>
  
  <pre><code>Declare @RepportDate
  
  Select t.ID,
         t.FullName,
         t.amount
  From myTable as t
  WHERE t.OperationDate=@RepportDate
  </code></pre>
  
  <p>Then I can use this variable more than one time after.</p>