add Failed column to view
This commit is contained in:
parent
134e87cb4b
commit
d8fb3b5e62
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,8 @@ SELECT
|
||||||
Kinds.Name as Kind,
|
Kinds.Name as Kind,
|
||||||
Domains.Name as Name,
|
Domains.Name as Name,
|
||||||
RecordIps.AsStr as Address,
|
RecordIps.AsStr as Address,
|
||||||
Exceptions.Name as Exception
|
Exceptions.Name as Exception,
|
||||||
|
Messages.Failed as Failed
|
||||||
FROM Messages
|
FROM Messages
|
||||||
LEFT JOIN Domains ON Messages.DomainId = Domains.DomainId
|
LEFT JOIN Domains ON Messages.DomainId = Domains.DomainId
|
||||||
LEFT JOIN Kinds ON Domains.KindId = Kinds.KindId
|
LEFT JOIN Kinds ON Domains.KindId = Kinds.KindId
|
||||||
|
@ -95,7 +96,6 @@ LEFT JOIN Ips AS ServerIps ON Messages.ServerId = ServerIps.IpId
|
||||||
LEFT JOIN Records ON Messages.RecordId = Records.RecordId
|
LEFT JOIN Records ON Messages.RecordId = Records.RecordId
|
||||||
LEFT JOIN Ips as RecordIps ON Records.IpId = RecordIps.IpId
|
LEFT JOIN Ips as RecordIps ON Records.IpId = RecordIps.IpId
|
||||||
LEFT JOIN Exceptions ON Messages.ExceptionId = Exceptions.ExceptionId
|
LEFT JOIN Exceptions ON Messages.ExceptionId = Exceptions.ExceptionId
|
||||||
-- GROUP BY Records.IpId
|
|
||||||
""",
|
""",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue