Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Query Help.

$
0
0

Hey all,

Essentially this is what I'm after. I have a specific proprietary application that updates a field ~ every 60 minutes with a location value and it is stamped with the time it gets updated. Here is the problem: This application crashes and hangs often. Currently, we don't have a way to track if it goes down. Below is some example data and what I'm after.

ID DATETIME

231 10/7/2019 01:10 am

251 10/7/2019 01:30 am

Let's say that it's now 2:00 am and no values have been written to these assets in 30 minutes. This would be worrying because there are hundreds being tracked and there is bound to be one update in that 30-minute time frame. I need to find a way to get the MOST RECENT TIME UPDATED and if it is more more than 30 minutes difference from the current time I will know it is...


Viewing all articles
Browse latest Browse all 4871


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>