Need some type of adv sql report that will gives me a node, the interface (gig1/0/1) when it last changed June-1-2011 and status (up/down). I have this below, that was leftover from my orion 8.51. SQL field in the report writer. But have no idea what it does or if the fields are valid
select n.nodeid, n.Caption as NodeName, i.Caption as InterfaceName, InterfaceLastChange, i.Status, i.StatusLED
from nodes n
inner join interfaces i
on n.nodeid = i.nodeid
where n.nodeid = 157 and i.Status = 2