First of all, I'm new to this forum. If this is not the right place to post OpenEdge SQL questions, please help point me in the right direction, thanks!
I'm using OpenEdge 10.1C, trying to collect database usage data using the following query:
SELECT CURDATE() AS 'ConnDate'
, CURTIME() AS 'ConnTime'
, COUNT(*) AS 'ConnCount'
WHERE "_Connect-Type" = 'REMC'
AND "_Connect-Device" <> '';
If the aggregate COUNT function returns a value >= 1, the result is:
If the aggregate COUNT function returns a value = 0, the result is:
Why does CURTIME() return NULL if the COUNT(*) is 0????????? I still need it to return the time!
I tried substituting the SYSTIME() and SYSTIMESTAMP() functions with the same result. Is this a bug?
Also, I find it strange that even if COUNT(*) is zero, CURDATE() still returns a date, but CURTIME() doesn't return a time...