Quote:
|
Originally Posted by jarmy
select IDENTIFIER from bcHistSessn
where USERID = 694005277882043342185161000000
and (char(STARTDT) = (CURRENT TIMESTAMP - 5 MINUTES))
|
is looking for something that happened at exactly that microsecond five minutes ago. What you probably wanted was more like
Code:
select IDENTIFIER from bcHistSessn
where USERID = 694005277882043342185161000000
and STARTDT >= CURRENT TIMESTAMP - 5 MINUTES
See, you don't need to use CHAR() either