New to this forum, but hopefully someone can help.
I am using a table which has 3 columns i'm looking to use:
LOGOFF_REASON
START_TIME
END_TIME
I'm looking to get the duration between START_TIME & END_TIME (ideally in seconds, but in any format will be fine) when a particular reason code is populated in LOGOFF_REASON - 'Lunch' for example.
I've tried a few ways, but getting some odd results back so wondered if anyone could add some assistance.
How results look in a table: