Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Sql query to calculate time difference.

Author  Topic 

Puni
Starting Member

1 Post

Posted - 2011-03-03 : 16:40:52
Hello,

I need a sql query to find the time difference.

i have date and time in this format.

eg:2011-02-20 12:58:25.000

i need a sql query to find time difference between two colums?


pls help.. its very urgent.


Puni

X002548
Not Just a Number

15586 Posts

Posted - 2011-03-03 : 17:46:26
SELECT DATEDIFF(ms,@s,@e)

????

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page
   

- Advertisement -