Viewing 15 posts - 7,501 through 7,515 (of 10,143 total)
richard.kirby (8/17/2010)
Hi ChrisI've attached some data and I will read through the suggested articles.
Thanks for such a rapid response.
Hi Richard
Thanks for providing the data, however, for anybody to be...
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
August 17, 2010 at 6:54 am
sgambale (8/17/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
August 17, 2010 at 6:33 am
ningaraju.n (8/13/2010)
Hi Chris,There are 7K records and has index on column AssessmentId and this is an single statement
Do you run the same statement many times with different @assessmentID?
How long does...
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
August 17, 2010 at 5:47 am
Hi Richard
Can you give us some sample data please? This will get you started, and there are also notes in the link in my sig.
Cheers-- Create some sample data
CREATE 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
August 17, 2010 at 5:38 am
What is the maximum number of rows for any orderno?
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
August 17, 2010 at 4:00 am
-----------------------------------------------------------
-- The Customer table is at the top of the hierarchy of
-- objects Customer, CustPhone, CustEmail, AddrDetail, AddrHeader
-- so use Customer as the driving table i.e. first 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
August 17, 2010 at 2:42 am
Ok, starting at the beginning, does this query return the same as your second query:
SELECT DISTINCT mh.LocationID
FROM tblManifest mh
-- the reference to l.Route in the WHERE clause turns...
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
August 16, 2010 at 5:57 am
dennisv (8/16/2010)
Trying the last example I get these:
Msg 207, Level 16, State 1, Line 4
Invalid column name 'LocationID'.
Msg 207, Level 16, State 1, Line 4
Invalid column name 'LocationID'.
Msg 207,...
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
August 16, 2010 at 3:41 am
Hi Dennis, thanks for posting the feedback.
I think there's room for performance improvement here. The second query can be rewritten slightly like this - reasons are in the code:
SELECT DISTINCT...
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
August 16, 2010 at 2:39 am
deepak.khandelwal (8/13/2010)
If you have got the solution/query. Please share.Thanks,
Deepak
Yep; if you take the ears off a rabbit, you got a draught excluder.
None of us here are psychic:-P
How about starting...
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
August 13, 2010 at 6:24 am
ningaraju.n (8/13/2010)
I am executing delete statement in production server and its taking more time . can any one please explain the reason
my delete statement looks like
: Delete from...
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
August 13, 2010 at 5:28 am
The reason I'm asking is this:
roelofsleroux (8/13/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
August 13, 2010 at 5:22 am
roelofsleroux (8/13/2010)
It a really big procedure...
Can you post the part of the procedure which utilises the function?
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
August 13, 2010 at 5:16 am
DROP TABLE #tb1
CREATE TABLE #tb1 (
[trade] [varchar](10) NULL,
[leg] [varchar](10) NULL, -----say it is my Unique key
[ccy] [varchar](10) NULL,
[idex] [varchar](10) NULL
)
INSERT INTO #tb1 (trade, leg, ccy, idex)
SELECT 'a1', 'b1', 'usd',...
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
August 13, 2010 at 5:12 am
Can you post the whole procedure?
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
August 13, 2010 at 4:54 am
Viewing 15 posts - 7,501 through 7,515 (of 10,143 total)