Viewing 15 posts - 8,116 through 8,130 (of 10,143 total)
Hi Martin
Please don't take this the wrong way - we all have to learn somewhere. The query you posted is about as simple as it can get. Buy yourself this...
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
March 3, 2010 at 8:14 am
Hide the beer quick lads...HR's doing the rounds
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
March 2, 2010 at 10:05 am
Not really. It's this one which got me thinking about it, because the data looks very familiar and also because the OP doesn't appear to know what he/she's doing 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
March 2, 2010 at 9:29 am
"How about them Bears?" 🙂
Is it just me, or are the posters who appear to be the students, the ones who have the nerve to post their homework here, the...
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
March 2, 2010 at 9:14 am
Paul White (3/2/2010)
Chris Morris-439714 (3/2/2010)
You're welcome. This one's a cracker too. Do you mind if I pass it to a colleague here? And if that is ok with you, what...
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
March 2, 2010 at 8:29 am
Paul White (3/2/2010)
Sent. Thanks!
You're welcome. This one's a cracker too. Do you mind if I pass it to a colleague here? And if that is ok with you, what...
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
March 2, 2010 at 7:37 am
Paul White (3/2/2010)
Chris Morris-439714 (3/2/2010)
Not at 7.40am no, but I will be when the beer you promised turns up 😛
Ha! Has it been chilly in H€ll recently then?
On a...
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
March 2, 2010 at 7:07 am
Paul White (3/2/2010)
Chris Morris-439714 (3/2/2010)
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
March 2, 2010 at 6:48 am
Paul White (3/2/2010)
CirquedeSQLeil (3/1/2010)
Paul - good article.
Thanks Jason. I think it's pretty much ready for publication now, just waiting for the last couple of reviews to come in (hint...
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
March 2, 2010 at 5:57 am
Thank you Pritesh, this is very helpful.
The first part of your UNION query looks like this:
Select CandidateID as ID, '0' as Exp, Status
from @CandidateUsedForProject
where ProjectId in (Select a.ProjectId...
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
March 2, 2010 at 2:20 am
Alvin Ramard (3/1/2010)
So how's everyone today?I'm not sure where my get-up-and-go is today. For some reason I feel emotionaly drained today.
What time do the pubs open where...
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
March 1, 2010 at 8:18 am
Hi Pritesh
It's not obvious what you are trying to do, but let's have a go anyway. The first thing to do is to break your problem down into separate parts,...
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
March 1, 2010 at 7:12 am
RBarryYoung (4/4/2009)
Ramesh (4/4/2009)
Well, I know it can easily extended to the next or higher level by adding another REPLACE of 9 commas or even 11 commas, but I just wanted...
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
February 26, 2010 at 2:44 am
Divya Agrawal (2/25/2010)
Good one Chris..
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
February 25, 2010 at 6:49 am
Jacco
Assuming there are no gaps in your identity column:
;WITH Results AS (
SELECT pkId, Col1, Col2, Col3, Col4
FROM dbo.tblDemo
WHERE pkId = 1
UNION ALL
SELECT s.pkId,
ISNULL(s.Col1, r.Col1),
ISNULL(s.Col2, r.Col2),
ISNULL(s.Col3, r.Col3),...
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
February 25, 2010 at 6:39 am
Viewing 15 posts - 8,116 through 8,130 (of 10,143 total)