Viewing 15 posts - 31 through 45 (of 67 total)
Try this out:
DECLARE @Table table (
Col1 char(1),
Col2 varchar(6),
Col3 smallint
)
;
insert @Table
values
('A','before',100),
('A','after',10),
('A','after',80),
('B','before',280),
('B','before',20),
('B','after',250),
('C','before',150),
('C','after',220)
;
With groups...
February 2, 2018 at 12:21 pm
What version of SQL Server are you using? SQL 2012 and above have the functions LEAD & LAG which you could use:
select
*,
DATEDIFF(MINUTE, LAG(LogDateTime, 1) OVER (PARTITION...
December 11, 2017 at 2:04 pm
Have you considered using xp_dirtree instead of xp_cmdshell. It carries less risk. To your question/error, the length of the in column in your temp table (#Dir) is too small.
December 11, 2017 at 8:37 am
First, based on the code you've posted, data for the 10am hour will duplicated in both time frames you've defined. There was another article posted by Bob Hovious today on...
December 8, 2017 at 1:58 pm
December 5, 2017 at 12:57 pm
Just a heads up; some of the techniques discussed can be skewed (in use) by maintenance jobs like re-indexing.
December 5, 2017 at 8:45 am
Doesn't really matter since you can have multiple replicas, but can a replica be clustered as well?
February 26, 2013 at 11:26 am
sjsubscribe (4/16/2010)
April 16, 2010 at 8:14 am
I once worked for a company with a "forward thinking" executive who initiated a Halloween Costume Contest her first year with the company. The company was "supposed" to provide...
April 16, 2010 at 7:13 am
Mad Hacker (3/12/2010)
At one of my former employers we had a horse shoes tournament complete with brackets which wasn't...
March 12, 2010 at 1:11 pm
My current employer has a workout facility which rivals any gym on the planet. Occasionally, I'll get to watch the K-9 officers practice or listen to the color guard...
March 12, 2010 at 9:55 am
Elliott W (9/15/2009)
Bert (9/15/2009)
September 15, 2009 at 11:35 am
Retraining?...How about training? I haven't had any employer funded training since 1994.
Ergo Chairs?...I once worked for a company that would not provide an ergo key board when I had...
March 6, 2009 at 6:42 am
Dave (3/5/2009)
Bert (3/5/2009)
...I personally don't trust ANYONE/THING that wants to collect data on me who/that I have not initiated a relationship with.
Do you pay taxes in the USA? Do...
March 5, 2009 at 10:17 am
dphillips (3/4/2009)
March 5, 2009 at 6:21 am
Viewing 15 posts - 31 through 45 (of 67 total)