I have a report that I have included on our main summary page that list the current down devices and other information, It looks like:
Current Down Devices and Status
Device Last Change Users Notes
APBeans 11-Jan-08 15:33 Accounting Job 154993
SWMickey 12-Mar-08 13:21 Facilites 161118
SWGoofy 12-Mar-08 10:21 Facilites 161079
SWBeta 13-Mar-08 07:26 Facilites
SWAlfa 27-Feb-08 12:56 Maint Job 159695
What I want to do is also add the amount of downtime. So if a device has been down since 11-Jan-08 15:33 it work show
Device Last Change Duration Users Notes
APBeans 11-Jan-08 15:33 1462 hr: 55 min Accounting Job 154993
Can someone help in the SQL logic?
Thanks