mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add failed snapshots_rules script
This commit is contained in:
parent
48a5d2a737
commit
edf9d2d3b7
2 changed files with 6 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ EndProject
|
|||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sql", "sql", "{A4BB2C81-5232-4162-B410-704D123D2C01}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
scripts\sql\createDb.sql = scripts\sql\createDb.sql
|
||||
scripts\sql\failedSnapshotsRules.sql = scripts\sql\failedSnapshotsRules.sql
|
||||
scripts\sql\getDuplicateRules.sql = scripts\sql\getDuplicateRules.sql
|
||||
scripts\sql\resetSnapshotsRules.sql = scripts\sql\resetSnapshotsRules.sql
|
||||
scripts\sql\snapshotTimeAnalysis.sql = scripts\sql\snapshotTimeAnalysis.sql
|
||||
|
|
|
|||
5
scripts/sql/failedSnapshotsRules.sql
Normal file
5
scripts/sql/failedSnapshotsRules.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
SELECT snapshotid, COUNT(*)
|
||||
FROM snapshots_rules
|
||||
JOIN snapshots ON snapshots_rules.snapshotid = snapshots.id
|
||||
WHERE snapshots.wassuccessful = FALSE
|
||||
GROUP BY snapshots.id
|
||||
Loading…
Reference in a new issue