Viewing 15 posts - 5,956 through 5,970 (of 18,926 total)
May 18, 2011 at 4:21 pm
SELECT * FROM (SELECT *, ROW_NUMBER() OVER(PARTITION BY TermianlID ORDER BY SchedLoadDate, Amount DESC /*In case you need a tie breaker for 1st*/) AS Group_RowID FROM dbo.tbl) dta
WHERE Groupe_RowID...
May 18, 2011 at 4:08 pm
Sean Lange (5/18/2011)
Is there a question here somewhere?
Not anymore :-P.
May 18, 2011 at 3:50 pm
Please post the estimated execution plan... or the actual plan from the cache.
Looks like you have an hidden triangular join but I'm not 100% sure.
May 18, 2011 at 3:47 pm
Agreed, upgrade for BI, maybe for compressions if you're on standard. I don't see many other reasons to.
May 18, 2011 at 3:45 pm
I have the same problem... if somehow it increases the priority of the ticket ;-).
May 18, 2011 at 3:44 pm
mister.magoo (5/18/2011)
Ninja's_RGR'us (5/18/2011)
Here... you'll have to get the right holidays for your country(ies) but the rest of it is done.I'll have one of those, thanks a lot Ninj 😉
HTH, I'm...
May 18, 2011 at 11:25 am
Read the whole thread...
Also very useful
May 18, 2011 at 11:22 am
Here... you'll have to get the right holidays for your country(ies) but the rest of it is done.
May 18, 2011 at 11:20 am
... and to resolve this you'll need to first get month(startweekdate) and join that back to the rest of the result set. I don't see any ways to do...
May 18, 2011 at 11:14 am
coronaride (5/18/2011)
Thanks. In theory, it sounded like it would work.
There's nothing like testing it for knowing for sure !
May 18, 2011 at 10:53 am
I was just showing you the identity function.
The idea is that once you have the "correct" data so just assign the identity with it (using the select into). At...
May 18, 2011 at 10:52 am
Please post sample data and required results... I'm just not getting the issue here!
May 18, 2011 at 10:48 am
Full text search might be an option (not an expert).
Otherwise please attach the actual execution plan.
May 18, 2011 at 10:45 am
Viewing 15 posts - 5,956 through 5,970 (of 18,926 total)