Viewing 15 posts - 1,831 through 1,845 (of 10,144 total)
ChrisM@Work (1/18/2016)
Jeff Moden (1/18/2016)[hrCan we agree on "SARGable in one direction only" as it's often sufficient to permit tweaking a decent plan?
With the battles I'm currently facing at work on...
January 18, 2016 at 7:59 am
Jeff Moden (1/18/2016)[hrCan we agree on "SARGable in one direction only" as it's often sufficient to permit tweaking a decent plan?
With the battles I'm currently facing at work on this...
January 18, 2016 at 5:48 am
VegasL (1/15/2016)
January 18, 2016 at 4:59 am
wolfgheist (1/14/2016)
ChrisM@Work (1/14/2016)
wolfgheist (1/14/2016)
January 14, 2016 at 9:02 am
wolfgheist (1/14/2016)
January 14, 2016 at 8:47 am
wolfgheist (1/14/2016)
January 14, 2016 at 8:43 am
wolfgheist (1/14/2016)
Thanks for the suggestion, but I cannot get that to show what I need.
It is Pulling
MedicalRecordNumberAccountNumberFirstNameLastNameWhenDischarged
12345 ...
January 14, 2016 at 8:11 am
Experiment with the result set. Take out the rn=1 filter so you can see the full set.
January 14, 2016 at 7:59 am
Have a play with ROW_NUMBER(). This should be close:
SELECT MedicalRecordNumber, AccountNumber, FirstName, LastName, WhenDischarged
FROM (
SELECT p.MedicalRecordNumber, p.AccountNumber, p.FirstName, p.LastName, p.WhenDischarged,
rn = ROW_NUMBER() OVER(PARTITION BY p.MedicalRecordNumber, p.AccountNumber ORDER BY p.WhenDischarged)
FROM Patient...
January 14, 2016 at 7:17 am
Jeff Moden (12/27/2015)
BWAAAA-HAAA!!! To0 funny! But, Nah... a "wheelie" on a unicycle is the hop you need to do to go up the stairs.
How do you...blimey Jeff, I...
January 11, 2016 at 2:06 am
erics44 (1/8/2016)
ChrisM@Work (1/8/2016)
erics44 (1/8/2016)
Hugo Kornelis (1/8/2016)
erics44 (1/8/2016)
Hugo Kornelis (1/8/2016)
Jeff Moden (1/7/2016)
Alan.B (1/6/2016)
You can't write a recursive CTE with using pre-CTE features.
Technically correct because only an rCTE can be an...
January 8, 2016 at 4:02 am
erics44 (1/8/2016)
Hugo Kornelis (1/8/2016)
erics44 (1/8/2016)
Hugo Kornelis (1/8/2016)
Jeff Moden (1/7/2016)
Alan.B (1/6/2016)
You can't write a recursive CTE with using pre-CTE features.
Technically correct because only an rCTE can be an rCTE but...
January 8, 2016 at 3:29 am
Jason A. Long (1/7/2016)
...
Edit: As a side note... When I included TVFs in that statement, I was referring to the "parameterized view" type of TVF... Not a TVF that's added...
January 8, 2016 at 1:39 am
Eric M Russell (1/7/2016)
January 7, 2016 at 10:05 am
Jacob Wilkins (1/7/2016)
There was this...
January 7, 2016 at 9:44 am
Viewing 15 posts - 1,831 through 1,845 (of 10,144 total)