I have an Oracle query that I am generating via SQLPlus. It's outputting 2 numbers:
Count (Integer >= 0)
Last Processed (DateTime)
I am tracking how many items are in a queue... and last time an item was processed.
Since the data fields doesn't include a date-time option... What is the best option to parse and compare the DateTime to "now"? and only do so if Count > 0?
Also... Assume it could get busy... where count stays over 0, but the Last Processed keeps moving forward.
So... basically it's
if Count > 0 then... if DateTime remains the same for 10m or longer... Alert!
I can format the DateTime via SQL easily to any number of output formats. Count is an integer.
Count (Integer >= 0)
Last Processed (DateTime)
I am tracking how many items are in a queue... and last time an item was processed.
Since the data fields doesn't include a date-time option... What is the best option to parse and compare the DateTime to "now"? and only do so if Count > 0?
Also... Assume it could get busy... where count stays over 0, but the Last Processed keeps moving forward.
So... basically it's
if Count > 0 then... if DateTime remains the same for 10m or longer... Alert!
I can format the DateTime via SQL easily to any number of output formats. Count is an integer.
Comment