I have data in a table as this:
NUM State Transition_Date
---- ----- ---------------
1430 0 2001-10-09 10:57:52.000
1430 1 2001-10-13 09:42:52.000
I have more than just this record with states 0 and 1.
What I want to come up with is this: The AVG difference
in hours between State 0 and State 1. I know the 'datediff'
function exists but I am having trouble coming up with
the SQL to get my results.
Lance
NUM State Transition_Date
---- ----- ---------------
1430 0 2001-10-09 10:57:52.000
1430 1 2001-10-13 09:42:52.000
I have more than just this record with states 0 and 1.
What I want to come up with is this: The AVG difference
in hours between State 0 and State 1. I know the 'datediff'
function exists but I am having trouble coming up with
the SQL to get my results.
Lance