I have below TEMP_PROCESS_MONITOR
table which has ALERT_TIMESTAMP
column which has date data type.The TIMEOUT
column has Number data type and it consist of Minutes values. I want to subtract the Current date with the ALERT_TIMESTAMP
field and get the minutes and then compare this minutes with TIMEOUT
field in the below select query.
TEMP_PROCESS_MONITOR
table:
And the condition should be for example like this:
(CURRENT_TIMESTMAP - ALERT_TIMESTAMP) > TIMEOUT
So i have to remove the Where condition from the below query and put the condition which i have mentioned above:
SELECT COUNT(*) FROM TEMP_PROCESS_MONITOR WHERE IS_DOWN = 1;