I need to subtract 2 datetime values.
The values are from the same view table but 2 different rows.
The points in the table are Alarm points which are generated via an after hours push button for air conditioning. The first point is the time the alarm is first initiated and the second is the time the alarm is disabled after the after hours timer disables.
Below are the queries which I am using to retrieves each value presently.
The values are from the same view table but 2 different rows.
The points in the table are Alarm points which are generated via an after hours push button for air conditioning. The first point is the time the alarm is first initiated and the second is the time the alarm is disabled after the after hours timer disables.
Below are the queries which I am using to retrieves each value presently.
Code:
SELECT LastAlarmDetailsByTime.originalAlarmTime FROM LastAlarmDetailsByTime WHERE (lan = 20) AND (os = 41) AND (theModule = N'i1') AND (AlarmCode = N'DI=1') ORDER BY originalAlarmTime DESC
Code:
SELECT LastAlarmDetailsByTime.originalAlarmTime FROM LastAlarmDetailsByTime WHERE (lan = 20) AND (os = 41) AND (theModule = N'i1') AND (AlarmCode = N'CDI1') ORDER BY originalAlarmTime DESC
Comment