Viewing 15 posts - 8,986 through 9,000 (of 9,399 total)
If you're sure that all you need is HH:MM:SS, then this will work.
with cte as (
select datediff(second, '09:28:00', '13:38:02') diff)
select
right('00' + convert(varchar(2), (diff % 86400)...
September 6, 2013 at 1:49 pm
DaveDB (9/6/2013)
Is there a way to mark a question as answered in SQL Server Central?
Not that I've seen. Most volunteers open a question, read it, see that it's been...
September 6, 2013 at 1:04 pm
DaveDB (9/6/2013)
Hi all,I have a rather basic question, but having difficulty.... I need to calculate the difference between 2 times. Any help would be appreciated.
Example:
09:28:00 - 09:38:00 = 00:10:00
You...
September 6, 2013 at 12:49 pm
SQLRNNR (9/5/2013)
crookj (9/5/2013)
jasona.work (9/5/2013)
SQLRNNR (9/5/2013)
crookj (9/5/2013)
batgirl (9/5/2013)
Cliff Jones (9/5/2013)
crookj (9/5/2013)
Ed Wagner (9/5/2013)
Gatling GunVulcan
Spock
He's dead Jim
"It's just a flesh wound...."
What? I'm not dead yet.
Yes, you are, now lie back down!
Zombie?
headless
Horsemen
September 6, 2013 at 7:35 am
Grant Fritchey (9/5/2013)
September 5, 2013 at 7:42 am
Tom - I've seen so many problems caused by with views on views on views in the past that I've denounced them as heretical and will never write them myself....
September 5, 2013 at 7:42 am
We figured you were using SQL 2008 since you posted in a SQL 2008 forum.
I believe CTEs were introduced in SQL 2005. Sorry, but I don't have a SQL...
September 5, 2013 at 7:17 am
This is absolutely the best approach I've seen anywhere for string parsing. It uses a set-based approach instead of parsing through the data set row by row and then...
September 5, 2013 at 5:48 am
Sean Lange (9/4/2013)
Koen Verbeeck (9/4/2013)
Sean Lange (9/4/2013)
Koen Verbeeck (9/4/2013)
Sean Lange (9/4/2013)
September 4, 2013 at 1:53 pm
Are the returned data sets the same no matter who runs the query? If you're selecting everything from a TVF, what is that function doing? Does it depend...
September 4, 2013 at 1:46 pm
WayneS (9/3/2013)
Ed Wagner (9/3/2013)
GilaMonster (9/2/2013)
SQLRNNR (9/2/2013)
Pins and needles seeing the strike-through on your MCM in the signature.I'll remove the strikeout in a week or two. Just making a point.
Like normal,...
September 4, 2013 at 10:19 am
Good question - thank you. It made me go back "a few" years and think about something that most of us take for granted now.
September 4, 2013 at 9:18 am
ScottPletcher (9/3/2013)
Also, follow the first rule of naming -- don't build...
September 4, 2013 at 6:34 am
This can't be as simple as it appears, so I have to question what is missing. If it really is this simple, just use the SUBSTRING function to concatenate...
September 3, 2013 at 12:51 pm
Viewing 15 posts - 8,986 through 9,000 (of 9,399 total)