1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
Can you please try the following code? I have tested this and getting the correct output:
SELECT
DATEDIFF(SECOND, '2024-05-15 16:53:55', '2024-05-15 16:56:11') / 3600 || ' hours ' ||
(DATEDIFF(SECOND, '2024-05-15 16:53:55', '2024-05-15 16:56:11') % 3600) / 60 || ' minutes ' ||
DATEDIFF(SECOND, '2024-05-15 16:53:55', '2024-05-15 16:56:11') % 60 || ' seconds' AS timestamp_diff;
Relevant content
- AWS OFFICIALUpdated a month ago
