Viewing 15 posts - 7,276 through 7,290 (of 10,143 total)
chris.king (9/28/2010)
Chris Morris-439714 (9/28/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
September 28, 2010 at 6:13 am
If the seven foreign key fields from any row of Table A reference seven different rows in Table B, then yes you will need to join Table B seven times...
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
September 28, 2010 at 4:36 am
Jaya, I reckon the most cost-effective way to approach your problem at this point in time is to see how each of your queries performs when you sub in 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
September 28, 2010 at 2:59 am
Alvin Ramard (9/27/2010)
WayneS (9/27/2010)
jcrawf02 (9/27/2010)
I of course immediately subscribed to your feedOkay, stupid question time. How do you subscribe to a blog feed? Are any special programs required?
Since you said...
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
September 28, 2010 at 2:36 am
Brandie Tarvin (9/27/2010)
Kit G (9/27/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
September 28, 2010 at 2:28 am
Brian McGee-355525 (9/27/2010)
MY_TABLE_2 does not have any rows with OTHER_FIELD = 'VALUE'. ...
Check that this is indeed the case. Using 2k8R1, the outer query returns 20 rows as if...
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
September 27, 2010 at 9:23 am
krishnakumar-293737 (9/27/2010)
Where THE_ID = (Select THE_ID from Database2..MY_TABLE_2 Where OTHER_FIELD = 'VALUE')
Order By MY_COL desc
Now....the subquery is invalid, there is no column THE_ID on...
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
September 27, 2010 at 9:17 am
steveb. (9/27/2010)
It definetly throws an...
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
September 27, 2010 at 8:25 am
Brandie Tarvin (9/27/2010)
Also, you forgot to remove the # sign from your table name. Since he's a newbie...
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
September 27, 2010 at 8:08 am
hugh.hemington (9/26/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
September 27, 2010 at 7:19 am
Fat freakin' Freddy's Cat.
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
September 27, 2010 at 7:00 am
Hiber-freakin'-nate
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
September 27, 2010 at 6:46 am
Is there a CTE in here anywhere?
If there is, then this article is probably worth a read:
Edit: found the link.
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
September 27, 2010 at 6:43 am
And another one:
;WITH OrderedPartitionedData AS
(SELECT RowID = ROW_NUMBER() OVER (PARTITION BY OrderID ORDER BY EventDateTime), *
FROM #DataTest)
SELECT dy1.venue, dy1.address1, dy1.city, dy1.[state], dy1.zip,
EDate1 = CONVERT(VARCHAR, dy1.eventdatetime, 101),
Edate2...
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
September 27, 2010 at 6:42 am
Here's a simple solution which assumes only three levels in the hierarchy, as in your sample data. Note how the sample data has been set up using a script:
DROP TABLE...
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
September 27, 2010 at 5:12 am
Viewing 15 posts - 7,276 through 7,290 (of 10,143 total)