I'm working on a database of sensors
This is a subset of my data
I would like to calculate the duration of each 'ON' event for all my sensors. Knowing that the duration of an 'ON' is equal to the difference between the first ON and the first OFF For example in the table for sensor 'capteur1', I have to have 41 seconds, 30 seconds, 25 seconds, etc. Thank,