Viewing 15 posts - 9,061 through 9,075 (of 10,143 total)
Hi Arun
as regular SQL it will look like this...
SELECT r.resolution, ISNULL(sq.CaseCount, 0) As CaseCount
FROM tlkResolution r
LEFT JOIN (SELECT c.resolutionID, Count(Distinct c.caseID) As CaseCount
...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 8:32 am
ALZDBA (12/19/2008)
beer and food 🙂
I prefere a very good Geuze Lambic (the bottle with natural cork please) :smooooth:
I'm not that...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 7:55 am
arun.samuel (12/19/2008)
Great. It works! 🙂Thanks a bunch.
Arun
Arun, please could you post your final working code? Not only does it finish the thread nicely, it may also stand as...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 7:33 am
If you can figure out the rules, it shouldn't be too hard to figure out the code.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 7:31 am
Debbie Edwards (12/19/2008)
I think the best thing I can do is try to figure out another simpler way, Im out of my league a bit here.
Im hoping there may...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 7:03 am
Grant Fritchey (12/19/2008)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 6:49 am
arun.samuel (12/19/2008)
"Only one expression can be specified in the select list when the subquery is not introduced with EXISTS."
Here...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 6:04 am
Someone said beer I swear...
Nicest beer this week was Blue Moon wheat beer from Denver, CO, purchased from Sainsbury's, Reading, UK.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 5:53 am
ddorfman (12/19/2008)
I can see that it would be difficult to assess my problem from the chunk of code i placed down. But i can assure you the only difference...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 5:49 am
Debbie Edwards (12/19/2008)
Microsoft SQL Server 2000 - 8.00.760 (Intel X86) Dec 17 2002 14:22:05 Copyright (c) 1988-2003 Microsoft Corporation Developer Edition on Windows NT...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 5:15 am
ALZDBA (12/19/2008)
same player shoot again ... hit ball when lights are on ...
:D:D
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 5:11 am
Debbie Edwards (12/19/2008)
Im on SQL Server 2005.Is there another way around this issue without using Partition?
Debbie
Debbie, I can see from some of your earlier posts that 2k5-specific code invariably fails...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 5:07 am
mdowns (12/19/2008)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 4:46 am
Debbie Edwards (12/19/2008)
Thanks for that. Ive tried it but Im gettingMsg 195, Level 15, State 10, Line 1
'ROW_NUMBER' is not a recognized function name.
Debbie
It's a SQL Server 2005 function, and...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 4:43 am
santosh.lamane (12/19/2008)
no it doesnt work
Could you elaborate please, Santosh? Post the code, and the error message? Thanks.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 19, 2008 at 4:37 am
Viewing 15 posts - 9,061 through 9,075 (of 10,143 total)