Viewing 15 posts - 8,011 through 8,025 (of 10,143 total)
How will you determine which lookup table the foreign key value is from, for each row of table c?
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
April 12, 2010 at 5:33 am
Dour.
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
April 12, 2010 at 4:28 am
Paul White NZ (4/12/2010)
Chris Morris-439714 (4/12/2010)
Heh in any case, it's a little sluggish...But full of recursive awesomeness!!!
Great code.
But so slow! I've got a little library of rCTE's now for 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
April 12, 2010 at 4:05 am
Ninja's_RGR'us (4/9/2010)
-- Maxrows = 16: (65,535 row(s) affected) / 00:00:02
-- Maxrows = 20: (1,048,575 row(s) affected) / 00:00:46
-- Maxrows = 21: (2,097,151 row(s) affected) / 00:01:33
-- Maxrows = 22: (4,194,303...
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
April 12, 2010 at 3:02 am
RBarryYoung (4/11/2010)
Tom.Thomson (4/11/2010)
mbricker-600840 (4/11/2010)
Tom.Thomson (4/11/2010)
hippopotomonstrosesquipedalianIs that a hippo that uses long words?
No, it's a sesquipedalian autological autonym. :hehe:
??? Really? I thought that it was a giant 75-footed carnivorous...
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
April 12, 2010 at 2:15 am
Garadin (4/9/2010)
Chris Morris-439714 (4/9/2010)
Oh cr@p - Seth, let me know if you're still considering setting up a challenge and I'll edit this out.
I am, but I know Jacob already has...
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
April 9, 2010 at 9:32 am
Ninja's_RGR'us (4/9/2010)
Chris Morris-439714 (4/9/2010)
It would be better to change the string list from comma-delimited to fixed position, three character positions per item - that way, the upper limit would...
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
April 9, 2010 at 9:25 am
Hi Ninja
It would be better to change the string list from comma-delimited to fixed position, three character positions per item - that way, the upper limit would be 999 rows....
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
April 9, 2010 at 7:34 am
vaibhav.tiwari (4/9/2010)
but i got the simpler solution from some another forum i want...
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
April 9, 2010 at 7:27 am
Deflate
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
April 9, 2010 at 7:04 am
jcrawf02 (4/9/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
April 9, 2010 at 6:44 am
This might help. I'd recommend rejigging it to return all address elements.
ALTER FUNCTION [dbo].[udf_AddressShuffle]
(
@AddressElementID INT = 1,
@Address1 varchar(80),
@Address2 varchar(80),
@Address3 varchar(80),
@Address4 varchar(80),
@Address5 varchar(80),
@Address6 varchar(80),
@Address7 varchar(80),
@Address8 varchar(80)
)
RETURNS VARCHAR(80)
AS
BEGIN
DECLARE @AddressElement VARCHAR(60)
;WITH Stringer 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
April 9, 2010 at 6:20 am
vaibhav.tiwari (4/9/2010)
thats what i have done earlier butNote that for ID 2 there is not any entry with action 'U'
so for that i need to show null.
Here's the simplest...
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
April 9, 2010 at 6:09 am
This is very basic, is it coursework?
If so, the following should get you started:
SELECT
s.ID,
s.M_ID,
s.T_Name,
s.T_Desc,
s.Sch_time,
createdon = i.ModifiedOn,
createdby = i.ModifiedBy,
LastModifiedOn = s.ModifiedOn,
LastModifiedBy =...
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
April 9, 2010 at 5:43 am
-- Method 1
DROP TABLE #InList
CREATE TABLE #InList (RowID INT IDENTITY(1,1) NOT NULL, JoinValue INT)
INSERT INTO #InList (JoinValue)
SELECT 5 UNION ALL
SELECT 1 UNION ALL
SELECT 3 UNION ALL ...
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
April 9, 2010 at 5:31 am
Viewing 15 posts - 8,011 through 8,025 (of 10,143 total)