Hi everyone I got an issue,
How can I subtract the arrival and depart (date_time) in to deviation (hours) and extract it to difference.

I have done the deviation by using this:
case(
when(diff_days(${arrival}, ${depart}) = 0
, (extract_hours(${depart}) - extract_hours(${arrival})) +(extract_minutes(${depart}) - extract_minutes(${arrival}))/60 +
(extract_seconds(${depart}) - extract_seconds(${arrival}))/3600)
, diff_minutes(${arrival},${depart})/60)
and the difference I did the same but it got an issue like this:

Many thanks
Best answer by honghai.sg99-1657099840
View original