

(SELECT TOP 1 * FROM _SYS_STATISTICS.STATISTICS_LAST_CHECKS
WHERE ALERT_ID = 0 ORDER BY ALERT_LAST_CHECK_TIMESTAMP DESC)
UNION ALL
SELECT * FROM _SYS_STATISTICS.STATISTICS_LAST_CHECKS
WHERE ALERT_ID != 0select round(memory_size_in_total/1024/1024/1024) as "SIZE(GB)"
from m_cs_tables
where table_name = 'STATISTICS_ALERTS_BASE'
and schema_name= '_SYS_STATISTICS';update _SYS_STATISTICS.STATISTICS_SCHEDULE
set RETENTION_DAYS_CURRENT = 25
where ID = 6002TRUNCATE TABLE "_SYS_STATISTICS"."STATISTICS_ALERTS_BASE";​DELETE FROM "_SYS_STATISTICS"."STATISTICS_ALERTS_BASE"
WHERE "ALERT_TIMESTAMP" < add_days(CURRENT_TIMESTAMP, -25);​You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 47 | |
| 21 | |
| 18 | |
| 16 | |
| 15 | |
| 14 | |
| 13 | |
| 13 | |
| 13 | |
| 13 |