So, I have two columns which are in unix/ epoch format (in milliseconds). I convert them accordingly:
dateadd(S, TIME_START/1000, '1970-01-01') AS J_Start,
dateadd(S, TIME_END/1000, '1970-01-01') AS J_End,
I want another column with the differential. However, when I try and do J_Start - J_End, I get an invalid identifier error. Is there any way around this? I've also tried substracting the full conversion syntax from one another but to no avail...
I was thinking of creating a virtual table and then joining it to the original but I would still encounter the aforementioned problem: Generating a virtual column from other, pre-existing one(s)