6 lines
477 B
JSON
6 lines
477 B
JSON
{
|
|
"id": "ef7f7e95-0173-4c0a-b540-65616077d483",
|
|
"prefix": "check_amr",
|
|
"description": "check recorded amr by connectic and max current amr",
|
|
"body": "SELECT s.*, a.APS_monitor_row_ID, a.AMR_APS_TS\r\nFROM ActiveSystemServer.amr.MonitorRowsStatus s\r\n LEFT JOIN Arizona.dbo.APS_monitor_row a ON a.APS_monitor_row_ID = s.LastTreatedMonitorRow\r\nWHERE s.DatabaseName='arizona'\r\n\r\nSELECT MAX(a.APS_monitor_row_ID)\r\nFROM Arizona.dbo.APS_monitor_row a \r\n"
|
|
} |