Viewing 15 posts - 496 through 510 (of 1,825 total)
Hi David ,
Pretty poorly. Your method also performs poorly in relation to a traditional sub-select.
This may or may not be platform agnostic, although an important point its not a concern...
December 10, 2010 at 3:39 am
Jack Corbett (12/8/2010)
December 9, 2010 at 6:07 am
Tim Widdup (12/9/2010)
Ok , so how could you achieve this in SQL Server 2000? Again, just need the top x from each group ordered by the ID field.Thanks
You will...
December 9, 2010 at 5:33 am
vinoth-750003 (12/8/2010)
hiIf it is possible group by Orderdate
That’s means order date wise row number
Not without a cursor / looping solution
December 9, 2010 at 2:42 am
The closest equivalent would be create a temptable with an identity column.
Naturally , that will not support the over clause though
December 8, 2010 at 7:29 am
you will need to insert the required userId's into a table and then left join from that back to your #cases table
December 7, 2010 at 8:07 am
Have you considered a calendar table ?
December 7, 2010 at 5:01 am
SwePeso (12/6/2010)
I tested the new Denali OFFSET/FETCH and I got the exact same number of reads for...
December 7, 2010 at 3:27 am
swoveland21 (12/6/2010)
Account table has 121,000 records and call has 651,000 records. Due to account type clause there are only 8,000 acount and 98,000 call records affected. I wonder...
December 7, 2010 at 2:35 am
@alex , Thanks glad you liked it.
The same thought had occurred to me but there complication would be that it would not entirely reproducible due to random data. ...
December 6, 2010 at 9:27 am
@Mihai , Yes this is all 2005 (or greater)
@RockvilleAustin
That code was qualified with "In an ideal world we would be able to execute ..... However we cannot,...
December 6, 2010 at 8:02 am
Kay ,
You are absolutely correct , any solution that relies upon a tally table has to have at least the required number of rows in the said tally table.
If you...
December 6, 2010 at 3:29 am
Rob-242869 (12/6/2010)
Neither links work...
Which links ?
The full article is here http://www.sqlservercentral.com/articles/T-SQL/71571/
December 6, 2010 at 3:18 am
Sorry , lost track of this one,
There does seem room for improvement here, Im not 100% clear on your requirements though.
Can you try restating and clarifying ?
December 2, 2010 at 4:23 am
Viewing 15 posts - 496 through 510 (of 1,825 total)