title: SQL statement to find older data between a certain date based on date column
body: <p>I'm learning SQL and can't seem to figure out how to find data older than 30 days but not older than 60 days. I'm using SQL Server. The below statement shows all emails where it is below the current date. I don't want to solid date/time like 2018-9-9 since I'm putting this in an application for it to send an email automatically to users after 30 days and blocking the account after 60 days. </p>
  
  <p>I have two columns in the database one is the Email_address(nvarchar(50) and the other is AccDate(date)</p>
  
  <pre><code>SELECT Email_Address
  FROM User_Email_Address
  WHERE Email_Address = Email_Address and AccDate &lt;= CURRENT_TIMESTAMP; 
  </code></pre>
  
  <p>I think I need to use Dateadd(day, -30, getdate(); , but not sure how to.</p>
  
  <p>I have two columns in the database one is the Email_address(nvarchar(50) and the other is AccDate(date).</p>