Viewing 15 posts - 106 through 120 (of 184 total)
select
max or min(testdate), --max or min depends on which date you want assigned to that 7 day range
sum(value1), --or whatever aggregate function is needed on a column
sum(value2), --etc.
sum(value3),
from table
group by...
August 13, 2013 at 1:56 pm
L' Eomot Inversé (8/13/2013)
batgirl (8/13/2013)
August 13, 2013 at 1:20 pm
garyh2k3 (8/13/2013)
August 13, 2013 at 12:02 pm
garyh2k3 (8/13/2013)
August 13, 2013 at 10:11 am
Stefan beat me to it - same answer here.
group by ((DATEDIFF(day, getdate(), "datefield"))/7)
August 13, 2013 at 9:13 am
L' Eomot Inversé (8/13/2013)
mtassin (8/13/2013)
TaylorMade (8/13/2013)
"A folder contains one or more projects and environments in the SSISDB...
August 13, 2013 at 8:39 am
Benki Chendu (8/9/2013)
I would want to let a user create linked server on his own. Does...
August 9, 2013 at 1:39 pm
Did you try google?
"SQL permission to create linked server" search returned this link first:
August 9, 2013 at 1:12 pm
Glad it worked - I will enjoy that beer!
August 9, 2013 at 12:46 pm
try something like this:
DATEADD(HOUR,5,DATEADD(MINUTE,25,"origdatetime"))
August 9, 2013 at 12:33 pm
Koen Verbeeck (8/8/2013)
Jeff Moden (8/8/2013)
Koen Verbeeck (8/8/2013)
August 9, 2013 at 11:54 am
I have always believed that it was up to me to find ways to add value - especially if I expected to have added compensation. I feel that I...
August 5, 2013 at 8:07 am
jasona.work (8/2/2013)
SQLRNNR (8/2/2013)
conventNuns
Sister Act
August 2, 2013 at 1:02 pm
Ralph Hightower (8/2/2013)
August 2, 2013 at 7:22 am
I definitely learn something new every day just hanging out here at SSC.com 🙂
August 2, 2013 at 6:39 am
Viewing 15 posts - 106 through 120 (of 184 total)