I am a bit new to coding SQL in the sense of the code. I trying to get it to show only records like posted with in 2 minutes of current time. i got the following code
any ideas where i am going wrong. the database sees the RSdate cell as YYYY-MM-DD HH:MM:SS.
Code:
SELECT * FROM dbo.RSonline WHERE DateDiff(m,RSdate,GetDate()) BETWEEN 0 AND 1 ORDER BY RSuser ASC
Comment