...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
SELECT jobProj.ProjectID , pc.Namelabel ASas ProtocolCredential , op.Name AS OutcomeProtocol , ch.AttemptDateo.Name AS Outcome , ch.IPAddress , ch.Port , c.label as Credentialch.AttemptDate FROM history.t_connectionhistory ch INNER JOIN jobs.t_JobLocationProjectIPRange AS jobProj ON jobProj.JobID = ch.JobID INNER JOIN config.t_Protocol p ON ch.ProtocolID = p.ProtocolID INNER JOIN config.t_Outcome o ON o.OutcomeID = ch.OutcomeID INNER JOIN config.t_Credential c ON c.CredentialID = CH.CredentialID WHERE ch.OutcomeID = 3 -- === Change this line ==== -- AND jobProj.ProjectID = 1 -- ========================= -- ORDER BY AttemptDate DESC |
...