View Single Post
  #1 (permalink)  
Old 01-14-2009, 7:34 AM
yathinj@gmail.com yathinj@gmail.com is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Oct 2008
Age: 33
Posts: 4
Reputation: 0
yathinj@gmail.com is on a distinguished programming path ahead
Default Calculating MTBF

Please help me if anyone have a solution for this
I have a database containing hundreds of records of a machine error logs
and i am creating a project in asp.net to show the performamnce of the equipments.

My Problem:I need to calculate and display the MTBF (mean time between faliures) using SQL statement.
That is calculating the mean time between entries and display the result for each machine.

Database table example:

date time errorcode machinename
19/7/2007 5:33:51 2.1117 CPT01
21/7/2007 4:15:16 2.1267 CPT01
19/7/2007 7:33:51 2.1117 CPT02
21/7/2007 8:15:16 2.1267 CPT02


I need the result to be something like this..

machinename MTBF
CPT01 2:23:45
CPT02 2:23:45

Thanks in advance
Reply With Quote