I have a table that is a record of values over time, because of the way the values are recored when the value is changing that record shows a value somewere between the old and new value
Here is an example.
Time Value1 Value2
1:00 2.5 3
2:00 2.5 3.5
3:00 2.75 4
4:00 3 4
I would like to write a set of queries that will select only the records when the value has just changed. For example from the table above if the query was for value1 it would return
Time Value1 Value2
4:00 3 4
If it was for value2 it would return
Time Value1 Value2
3:00 2.75 4
Any suggestions
Here is an example.
Time Value1 Value2
1:00 2.5 3
2:00 2.5 3.5
3:00 2.75 4
4:00 3 4
I would like to write a set of queries that will select only the records when the value has just changed. For example from the table above if the query was for value1 it would return
Time Value1 Value2
4:00 3 4
If it was for value2 it would return
Time Value1 Value2
3:00 2.75 4
Any suggestions