Viewing 15 posts - 826 through 840 (of 1,251 total)
select
t1.id
,t1.timestamp
,t2.timestamp
,TimeTaken = cast(datediff(second,t1.timestamp,t2.timestamp)/3600 as varchar)+':'
+right('0'+cast(datediff(second,t1.timestamp,t2.timestamp)/60 %60 as varchar),2)+':'
+right('0'+cast(datediff(second,t1.timestamp,t2.timestamp) %60 as varchar),2)
from dbo.runningtime t1
left join dbo.runningtime t2 on t2.id = t1.id+1
Here's another attempt.
@dba-2 From The Cold, I don't mean to...
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 27, 2014 at 4:18 am
Voted.
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 26, 2014 at 3:08 am
Stuart Davies (11/25/2014)
SQLRNNR (11/24/2014)
Stuart Davies (11/24/2014)
SQLRNNR (11/24/2014)
accelerantarson
fun
house
Arrest
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 25, 2014 at 4:56 am
Thanks Gail.
It's hard to ask why they want things because of the dark politics of what's going on. We have to keep things very much at arms length so...
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 24, 2014 at 2:47 am
I wondered if it's to handle timespans. What we're doing is heavily connected to lengths of time and the duration of various things. I could understand if they...
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 24, 2014 at 2:35 am
HanShi (11/20/2014)
Stuart Davies (11/20/2014)
Koen Verbeeck (11/20/2014)
This means people have to vote for me (or other people, but preferable...
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 20, 2014 at 4:58 am
SQLRNNR (11/18/2014)
dissociative
fugue
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 19, 2014 at 3:12 am
I stand corrected. There are several companies that offer pre-employment credit checks over here. The thinking is to avoid the possible corruption. One company also phrases it in...
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 18, 2014 at 6:56 am
Stefan Krzywicki (11/18/2014)
cackalackian (11/18/2014)
Would you want aspects of your life, perhaps data outside of your health (think driving, finance, etc) to be part of the evaluation (or negotiation) process for...
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 18, 2014 at 6:46 am
Give this a try
create function dbo.ProperCase (@name varchar(70))
returns varchar(70)
as
begin
declare @output varchar(70)
declare @upper varchar(70)
declare@space int
declare @first varchar(70)
declare @last varchar(70);
set @upper= rtrim(ltrim(upper(@name)))
set @space= patindex('% %',@upper)
set @first= left(@upper,@space)
set @last= reverse(left(reverse(@upper),@space) )
set @output =...
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 13, 2014 at 5:35 am
The short answer is yes, the long answer is 'it depends what for'.
http://msdn.microsoft.com/en-us/library/ms144275.aspx
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 13, 2014 at 2:52 am
Thanks Perry, I spent most of yesterday looking into the column source and destination mappings as you suggested but I'm still struggling. From what I found, I got the...
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 13, 2014 at 2:37 am
Stuart Davies (11/11/2014)
BWFC (11/11/2014)
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 11, 2014 at 2:07 am
One of the people whose name I've seen attached to the kitchen cabinets spam lives just down the road from me. He's a reasonably notorious local businessman who's actually...
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 11, 2014 at 1:51 am
I suspect not as many people will get this right as they should because one of the two identical options returns a wrong answer.
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537
November 11, 2014 at 1:33 am
Viewing 15 posts - 826 through 840 (of 1,251 total)