Viewing 15 posts - 1 through 15 (of 127 total)
Well, yes, I've worked at it from that angle, too. However, your query is only picking up the 'EN' dates, not the ones that are begin dates by virtue...
November 19, 2010 at 9:06 am
Well, ***!*** What I'm trying to do is dynamically generate a list of columns for a pivot. The columnnames, of course, are actually values. So they change...
April 3, 2009 at 9:31 am
I, too, will have a need to do this. I don't have a direction to point you in, but I assume you would create a .NET assembly and put...
March 23, 2009 at 6:32 am
Yeah, I think that's what I was looking for. I can extrapolate MAX(CASE WHEN [field] IS NOT NULL THEN [date] END)
to do what I need.
Thanks for the guidance
January 13, 2009 at 12:31 pm
Jeff,
That looks pretty good, but I was just working with a reduced dataset as an example. I need to expand it to use groups of IDs. I need...
December 8, 2008 at 8:13 am
Excellent! Thank you. It looks like I was on the right track. I had the row_count() in there, but I was trying to use < rather than...
December 5, 2008 at 6:27 am
Ok. I coulda sworn I've put cross applies in other sps. It seems like the best way to go. I'm trying to generate a denormalized column result...
September 18, 2008 at 5:06 am
This version uses temp tables instead of a table var (that's still there if you search/replace). In case you're wondering, I took out the code that does an audit...
September 17, 2008 at 5:10 am
Oh, and in case anyone is curious, the reason I'm running it as an sp and not a query is because I need to return two resultsets, and I can't...
September 12, 2008 at 6:07 am
@ninja: yes, of course, those are all issues. However, the argument goes: it's a development database - little or no load, and I can run first the...
September 12, 2008 at 6:04 am
Well, that's a possibility, but I tried executing the stored proc 'WITH RECOMPILE', and it's no faster. In other words, compensating for the execution plan not being optimized didn't...
September 11, 2008 at 12:05 pm
Argh! Stops just short of being useful!
May 21, 2008 at 6:13 am
match rows. I mean, I suppose I *can*, but it means joining back on like four or five columns to be unique.
May 20, 2008 at 4:37 pm
No - how much change does that setting make?
I'm trying to get the update to go through, see if that helps.
May 16, 2008 at 7:16 am
That's useful information: WHERE -> GROUP -> SELECT -> ORDER
Yeah, the CTE is probably the way to go. It's a new tool; I'm not used to thinking about it.
Thanks...
December 27, 2007 at 7:23 am
Viewing 15 posts - 1 through 15 (of 127 total)