Here is the issue I am having: I have a large query that needs to compare datetimes in the where clause to see if two dates are on the same day. My current solution, which suck
where year(date1) = year(date2) and month(date1) = month(date2) and day(date1) = day(date2)