79143878

Date: 2024-10-31 08:07:31
Score: 0.5
Natty:
Report link

In SQL Server, the right way of comparing datetimes by date only is this:

...
WHERE
    AttendanceRegister.RegistrationDate >= GETDATE() AND
    AttendanceRegister.RegistrationDate < dateadd(day, 1, GETDATE())
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Azizbek PhD