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
 difference between 2 fields

Author  Topic 

rds207
Posting Yak Master

198 Posts

Posted - 2009-07-30 : 18:36:48
i have 2 coloumns in a table and i need to get the diff between the coloumns..
Eg:starttime Endtime
17:23:98 18:23:56

robvolk
Most Valuable Yak

15732 Posts

Posted - 2009-07-30 : 18:43:28
See the DateDiff() function in Books Online.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2009-08-05 : 12:53:55
In second, minutes, hours, days, months or years?



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

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -