Viewing 15 posts - 2,446 through 2,460 (of 5,504 total)
Digs (12/11/2010)
...All I need is a guru to spend 1 sec of his time to post some TSQL, on show how too??
... and your homework is done... 😉
If it's not...
December 11, 2010 at 11:21 am
What have you tried so far as a source?
I'd expect google will return numerous related articles being a lot more specific than a forum post can be...
December 11, 2010 at 10:33 am
Looks like homework... You might want to look into aggregation task or GROUP BY in TSQL.
December 11, 2010 at 10:03 am
Craig Farrell (12/10/2010)
... I'd mention them but I'm not entirely sure I'm not barking up the wrong tree. 🙂
Unlikely. The tree is already occupied and I can't spot...
December 10, 2010 at 11:37 am
Brandie Tarvin (12/10/2010)
LutzM (12/10/2010)
December 10, 2010 at 11:27 am
Seems like we're both confused now... :ermm:
Attached please find the snapshots of the execution plans I get when running the queries on your sample data (I didn't include files as...
December 10, 2010 at 11:20 am
A similar option would be adding another table CoverageVersionsHistory with the current CoverageVersions structure and move all outdated versions into this history table on a scheduled base. So, instead of...
December 10, 2010 at 9:46 am
You get a table scan because your subquery has no limiting WHERE condition. In order to find max(Effective) per CoverageKey you'd need to scan the entire table (or clustered index).
One...
December 10, 2010 at 9:32 am
Please post the actual execution plan so we can see if there's a possible index issue.
December 10, 2010 at 3:40 am
Without knowing your current code (where did you place the TRY CATCH block?) it's unlikely we can help to solve the issue. So, please post the relevant code snippet.
December 10, 2010 at 3:24 am
I don't understand why you can't use PIVOT on your system...
Anyway, here are both solutions, PIVOT and CrossTab.
SELECT
Jaar ,
MAX(CASE WHEN Koersnaam ='Giro d''Italia' THEN Coureur ELSE NULL END) AS...
December 10, 2010 at 3:23 am
I'd also recommend to just skip SQL2000 and move at least to 2005 (even better 2008).
Reason: There are major changes between 2000 and 2005, not only internally, but also in...
December 10, 2010 at 1:10 am
Ok, after clarification of the system you're using we'd still need some ready to use sample data....
I don't think you'd need to ask the question again in the SS2K8 forum....
December 9, 2010 at 3:57 pm
Regarding the lookup: I found
Jamie's blog very helpful. It might add some more benefit to your task performance, too.
December 9, 2010 at 3:52 pm
Please post table def and sample data in a ready to use format as described in the first link in my signature. Also, please include the expected result based on...
December 9, 2010 at 3:13 pm
Viewing 15 posts - 2,446 through 2,460 (of 5,504 total)