I am trying to use report writer to generate circuit availiblity. I need the time the node went down and came back up, then the total of the duration for that period. As it stands I have been working in advanced SQL to develop the report. I am now at a point where I am no longer making any progress. So far this is what I have:
SELECT Nodes.NodeID AS NodeID,
Events.EventTime AS Event_Time,
Nodes.VendorIcon AS Vendor_Icon,
Nodes.SysName AS System_Name,
( STR(Events.EventType) + '.gif') AS EventTypeIcon,
Events.Message AS Message
FROM
Nodes INNER JOIN (Events INNER JOIN EventTypes Events_EventTypes ON (Events.EventType = Events_EventTypes.EventType)) ON (Nodes.NodeID = Events.NetworkNode)
WHERE
( EventTime BETWEEN 39690 AND 39719 )
AND
(
(Events.EventType = 10) OR
(Events.EventType = 11)
)
Is it possible to achieve what I am after?