Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

DateTime Interval in "DD HH:MM:SS"

$
0
0

Hello

I have two columns with DATETIME data and I have to retrieve the interval between them in "DD HH:MM:SS"

Ex. one is 2014-06-05 10:55:00 and the other is 2014-06-07 11:30:10, I need the output to be "2 01:35:10"

is there any easy way without using a User Defined Function?

Thanks

Javier


Javier Villegas | @javier_villhttp://sql-javier-villegas.blogspot.com/

Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>