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;
answered 16 days ago
Relevant content
- asked 10 months ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 3 months ago