I was looking for an equivalent in MSSQL for the following Oracle query:
select count(*) from TBL_USER_DETAILS where TIMESTAMP like sysdate
Then I found the following query in MSSQL serves the purpose:
select COUNT(*) from TBL_USER_DETAILS where DATEDIFF(DAY,TIMESTAMP, getdate()) = 0
The first parameter in Datediff() function is the interval (Day, month or year) by which I am looking for the data.