title: How to compare two date values using SQL
body: <p>How to compare two dates the first column table one 2013-04-04 05:47:52.000 the second one from other table 2010-01-01 00:00:00.000.
  I want to compare just yy/month/day; if they are equal, I get second id table.</p>