Code: Select all
SELECT * from table where
last_seen <= CONVERT(DATETIME,GETDATE()) and last_seen >= CONVERT(DATETIME,'2023-09-02 17:38:10'
Code: Select all
SELECT * from table where
last_seen <= CONVERT(DATETIME,GETDATE()) and last_seen >= CONVERT(DATETIME,'2023-09-02 17:38:10'