Viewing 15 posts - 3,136 through 3,150 (of 8,416 total)
Thanks for the recommendation Cold Coffee 😎
Azeem, if you have any questions after reading both parts of the article and examining the code samples provided there, please post them here...
June 10, 2010 at 3:26 am
skcadavre (6/8/2010)
I answer questions...
June 9, 2010 at 8:36 pm
Hey,
Thanks for that. Rather than debate how the statistics are being used, let's take a look at the expression you are asking the optimiser to plan for. Both...
June 9, 2010 at 8:29 pm
joefreeman (6/8/2010)
For PersonID 3 the earliest month value would be '01'
And the variance would be 10? :unsure:
June 8, 2010 at 5:57 am
What is the earliest month for person 3 in your original sample data?
Is it month 1 or month 11?
Month 12 is not in the list.
June 8, 2010 at 5:47 am
joefreeman (6/8/2010)
Sorry, unfortunately the month value is an anniversary/renewal month therefore is non year specific. So the wrap affect only comes into play when December(12) is in the list.
That's...
June 8, 2010 at 5:41 am
sistemas_casinomnes (6/2/2010)
How can I obtain the only date part of a datetime field?
If you find yourself needing the date-only portion frequently, it might make sense to pre-compute it.
You can minimise...
June 8, 2010 at 5:40 am
Assuming that the current date acts as the cut-off for deciding whether a month number belongs to last year or this year...
DECLARE @Sample
TABLE (
...
June 8, 2010 at 5:08 am
The simple answer is that the query is a poor one, and SQL Server 2005 happens to come up with a less disastrous execution plan than 2008. Try writing...
June 8, 2010 at 2:49 am
CirquedeSQLeil (6/7/2010)
June 8, 2010 at 12:20 am
Steve Jones - Editor (6/5/2010)
June 8, 2010 at 12:16 am
sgalbra (6/4/2010)
June 8, 2010 at 12:02 am
Gopi Muluka (6/4/2010)
My bad, Its CROSS APPLY... on a side note even CROSS JOIN will fare better than CROSS APPLY
Why do you say that? Another mistake?
June 4, 2010 at 9:52 pm
Viewing 15 posts - 3,136 through 3,150 (of 8,416 total)