M
mp80237
I have a table with Platformscom.StartTime, Platformscom.EndTime,
Platformscom.ImpactSev. I need to find the MTBI from the ending
impact of once incident to the beginning impact of another incident.
For example I have one record with a StartTime of 10/29/2008 11:15:00
PM and an EndTime of 10/30/2008 12:33:49 AM. The next record has a
StartTime of 11/5/2008 10:14:00 PM and an EndTime of 11/5/2008
10:18:00 PM. I would like to get the time difference between
10/30/2008 12:33:49 AM and 11/5/2008 10:14:00 PM. I would like to do
that with each record.
Thank you so much for the help.
I had tried below, but the numbers were just subtracting the time in
the same record.
SELECT T.StartTime, (SELECT MAX(EndTime) FROM [qryPlatformscom] T1
WHERE T1.EndTime < T.EndTime) AS EndTime, DateDiff("n",
[StartTime],[EndTime]) AS [Interval]
FROM qryPlatformscom AS T
ORDER BY T.StartTime;
Platformscom.ImpactSev. I need to find the MTBI from the ending
impact of once incident to the beginning impact of another incident.
For example I have one record with a StartTime of 10/29/2008 11:15:00
PM and an EndTime of 10/30/2008 12:33:49 AM. The next record has a
StartTime of 11/5/2008 10:14:00 PM and an EndTime of 11/5/2008
10:18:00 PM. I would like to get the time difference between
10/30/2008 12:33:49 AM and 11/5/2008 10:14:00 PM. I would like to do
that with each record.
Thank you so much for the help.
I had tried below, but the numbers were just subtracting the time in
the same record.
SELECT T.StartTime, (SELECT MAX(EndTime) FROM [qryPlatformscom] T1
WHERE T1.EndTime < T.EndTime) AS EndTime, DateDiff("n",
[StartTime],[EndTime]) AS [Interval]
FROM qryPlatformscom AS T
ORDER BY T.StartTime;