title: Incorrect syntax near ',' (within the dates not working)
body: <p>I'm getting the above SQL error after executing this query.</p>
  
  <pre><code>SELECT r.SectionIDNum, r.PeopleIDNum, r.Completed, c.CourseID, s.DistrictIDNum, s.EndDate
  FROM Registration r, Course c, Section s
  WHERE r.SectionIDNum=s.SectionID AND c.CourseID=s.CourseIDNum AND r.Completed='Y'
  AND s.EndDate between ('2012-06-31', 'yyyy-mm-dd') and ('2013-07-01', 'yyyy-mm-dd')
  </code></pre>
  
  <p>Apparently, the commas in the dates are causing the error but I don't know how to fix it.</p>