Viewing 15 posts - 811 through 825 (of 3,957 total)
vip.blade (2/6/2014)
Is there also a way to use the FIRST_VALUE(order_date)...
February 6, 2014 at 5:28 pm
suresh0534 (2/6/2014)
Thank you so much...it help me lot....Big thankful to all the members....
Thanks,
I'm glad to hear it helped too. It got me to thinking that this is sort...
February 6, 2014 at 5:23 pm
David McKinney (2/6/2014)
I find the criticism somewhat harsh. ...
Also, sorry but I find the allusion to plagiarism a little facile....
February 6, 2014 at 3:27 am
Sean Lange (2/5/2014)
To be fair there are two splitters posted. The first is the looping version. The second one is inside...
February 5, 2014 at 11:20 pm
Alex,
Unfortunately, I must offer two criticisms of this article. At the end you said:
Alex Grinberg (1/15/2014)
February 5, 2014 at 10:45 pm
SQLRNNR (2/5/2014)
Nice solution.
Actually, I am not too proud to admit that solution stunk up the house! Not sure what I was thinking there.
This will be much faster,...
February 5, 2014 at 8:12 pm
Luis Cazares (2/5/2014)
dwain.c (2/5/2014)
Luis has provided you a perfectly good solution to your question.I managed to get into your head. I hope you won't have nightmares :hehe:
Only if...
February 5, 2014 at 6:09 pm
SQLRNNR (2/5/2014)
IMHO, I don't see why the start date of 6/25 would not have an end date of 8/2 instead of 12/31. That just makes more sense to me.
Agreed...
February 5, 2014 at 6:02 pm
I agree that your expected results don't match your sample data. But I think you're looking for something like this:
SELECT id, cid, startdate=MIN(d)
, enddate=CASE
...
February 5, 2014 at 5:48 pm
Lowell has provided you a perfectly good solution to your question. However, you may want to also consider something like the following for performance reasons:
WITH PreAggregate AS
(
...
February 5, 2014 at 5:20 pm
Jeff Moden (2/5/2014)
ChrisM@Work (2/4/2014)
He's calling summer on one sighting of a swallow.
He should come to Michigan. It was snowing to beat the band a couple of days ago and...
February 5, 2014 at 5:04 pm
I'm just guessing here because I don't have much additional time to look deeper, but this probably has to do with the fact you have no "supersession date" on your...
February 4, 2014 at 7:17 pm
JohnFTamburo (2/4/2014)
February 4, 2014 at 6:43 pm
p.barwick (2/4/2014)
..
CREATE TABLE #Source
(
PartNo VARCHAR(20)
,PartDesc VARCHAR(100)
...
February 4, 2014 at 6:39 pm
This code gets me a non-clustered INDEX Scan on 2008 R2 and 2012.
CREATE TABLE #TempTab
(
ID INT IDENTITY PRIMARY KEY
,PhoneNum VARCHAR(10)
...
February 4, 2014 at 6:27 pm
Viewing 15 posts - 811 through 825 (of 3,957 total)