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.
Author |
Topic |
Alam Hammad
Starting Member
1 Post |
Posted - 2014-12-30 : 04:41:09
|
The data is in the following formatRowid UserID Name Model St_Date End_Date6 5 hammadalam 1 2014-12-26 20:45:00 2014-12-27 21:56:007 5 hammadalam 2 2014-12-26 21:01:00 2014-12-26 21:55:009 5 hammadalam 3 2014-12-26 21:52:00 2014-12-26 21:53:0010 5 hammadalam 4 2014-12-26 22:29:00 2014-12-26 22:32:00Thanks & regards |
|
gbritton
Master Smack Fu Yak Hacker
2780 Posts |
Posted - 2014-12-30 : 09:51:07
|
select sum(datediff(day, st_date,end_date))from mytable. |
|
|
|
|
|