Select from following answers:- SELECT COUNT(*) FROM Events WHERE EventTime >= CONVERT(DATE, GETDATE()) AND EventTime < DATEADD(DAY, 1, CONVERT(DATE, GETDATE()))
- SELECT COUNT(*) FROM Events WHERE EventTime = CONVERT(DATE, GETDATE())
- SELECT COUNT(*) FROM Events WHERE EventTime = GETDATE()
- SELECT COUNT(*) FROM Events WHERE CONVERT(VARCHAR, EventTime, 112) = CONVERT(VARCHAR, GETDATE(), 112)
- All Above
EventTime >= CONVERT(DATE, GETDATE()) AND EventTime < DATEADD(DAY, 1, CONVERT(DATE, GETDATE()))
this condition returns the most accurate and efficient results
Show Correct Answer
|
Alert Moderator