[ad_1]
Goal: My goal is to get the time difference of when status was updated.
Attempted: I attempted the code below and this returns: number of days, hours:min:ss
SELECT RecordID,
lag(timestamp) OVER (PARTITION BY Billetnum ORDER BY timestamp)
AS PriorStamp
FROM Tracker;
Problem: I’m trying to only get the number of days.
[ad_2]