Viewing 15 posts - 8,266 through 8,280 (of 8,760 total)
Sean Lange (5/13/2014)
rhythmk (5/13/2014)
;WITH test
AS
(SELECT POLICY_DETAILS_ID,HISTORY_ID,CODE_ID,
ROW_NUMBER() OVER(PARTITION BY POLICY_DETAILS_ID,HISTORY_ID ORDER BY code_id) AS rn
FROM @POLHIST)
SELECT POLICY_DETAILS_ID,HISTORY_ID,
MAX(CASE WHEN rn = 1...
May 13, 2014 at 7:35 am
Quick solution
😎
Use tempdb;
GO
DECLARE @CUST_PAY TABLE
(
CustNO INT NOT NULL
,InvNO INT NOT NULL
,ChkNO INT NOT NULL
);
INSERT INTO...
May 12, 2014 at 3:35 pm
dndaughtery (5/12/2014)
May 12, 2014 at 3:13 pm
A lot and some, seriously the more the merrier.
😎
May 12, 2014 at 2:18 pm
thomashohner (5/12/2014)
I have also been reading about portrait mode any one use this? Flip your monitor vertically for longer coding?
Apart from straining the neck:hehe:, not really, most who I have...
May 12, 2014 at 12:34 pm
Lynn Pettis (5/12/2014)
Eirikur Eiriksson (5/12/2014)
ChrisM@Work (5/12/2014)
Eirikur Eiriksson (5/12/2014)
Mike Saunders NL (5/12/2014)
The only thing that is missing is that the days with no events are not mentioned. Is...
May 12, 2014 at 11:46 am
ChrisM@Work (5/12/2014)
Eirikur Eiriksson (5/12/2014)
Mike Saunders NL (5/12/2014)
The only thing that is missing is that the days with no events are not mentioned. Is there a way to...
May 12, 2014 at 11:05 am
Lynn Pettis (5/12/2014)
I have no idea what you mean by a POC Index, please explain. Also, please note the changes I did make on the sample data.
The POC index...
May 12, 2014 at 10:55 am
Mike Saunders NL (5/12/2014)
The only thing that is missing is that the days with no events are not mentioned. Is there a way to display these days...
May 12, 2014 at 9:42 am
Bill Talada (5/12/2014)
Q.E.D.I added this weird line after the FROM clause and now results are immediate!
OPTION ( OPTIMIZE FOR ( @xml = NULL ) )
Good stuff!
I had forgotten about this,...
May 12, 2014 at 9:21 am
Here is a simpler window function (2012/2014) version. Although simpler than the earlier 12/14 one, it performs similar, mainly because of an sort operator which is around 60% of the...
May 12, 2014 at 9:12 am
Bill Talada (5/12/2014)
May 12, 2014 at 7:25 am
paul 31908 (5/12/2014)
I am creating a database where each record is required to have a twin record in the database.
These is a type a value and a type b...
May 12, 2014 at 6:18 am
Viewing 15 posts - 8,266 through 8,280 (of 8,760 total)