Viewing 15 posts - 8,821 through 8,835 (of 10,143 total)
What have you tried so far?
Please post table structures and sample data. You may find it helpful to read the article in the link below.
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 6, 2009 at 5:59 am
Nikhil (2/6/2009)
i tried with joins but it didnt work as price column was ambiguous as i was willing to populate prices for all
Please read the link below. People will 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
February 6, 2009 at 5:11 am
What have you tried so far?
Please read the link below, it will show you how to create sample data.
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 6, 2009 at 4:54 am
KSB (2/5/2009)
Here is my code.
SELECT DISTINCT prof_sec.profile_skeyAS profile_skey,
acct_sec.account_skey
INTOdbo.profile_assoc_security
FROMdim_account_secureacct_sec, dim_profile_secureprof_sec
--INNER JOINdim_profile_secureprof_sec
--ONacct_sec.account_key > 0
--ANDprof_sec.profile_key > 0
INNER JOIN #TempAssociateObjectstemp_assoc_obj
ONtemp_assoc_obj.assoc_object_skey = prof_sec.profile_skey
WHERE EXISTS (SELECT 'X' FROM project_securityproj_security
WHERE proj_security.account_skey = acct_sec.account_skey
ANDtemp_assoc_obj.object_skey= proj_security.project_skey
)
AND NOT EXISTS...
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 5, 2009 at 12:54 pm
Thanks for the feedback eddy. Please be advised that this type of construction can cause performance problems if the cached plan is a poor match for the parameters received when...
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 5, 2009 at 6:53 am
SELECT * FROM [BASISREL] AS b
WHERE PAR_ID_FIRMA = @FirmaId
AND [PAR_ID_TYPE] = CASE WHEN @var < 20 THEN @var ELSE [PAR_ID_TYPE] END
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 5, 2009 at 6:06 am
Thanks for the feedback Suresh. Participants in this thread, including myself, would be interested to see exactly how you implemented the changes which solved your problem - can you post...
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 5, 2009 at 4:10 am
nikhil.verma (2/5/2009)
Hi ChrisWith this i am not getting correct results for qty_tested , dty_failed. Counts are different.
Without seeing the code you are using now and the code you were using...
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 5, 2009 at 4:08 am
Suresh, your statement is syntactically correct but almost certainly won't give the results you are expecting.
This...FROM dim_account_secure acct_sec
INNER JOIN dim_profile_secure prof_sec
ON acct_sec.account_key > 0
AND prof_sec.profile_key > 0
isn't an INNER...
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 5, 2009 at 1:13 am
Hi
Put it in brackets, like this:
AND NOT (Server = 'SQL005' and Drive = 'G')
Cheers
ChrisM
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 4, 2009 at 10:25 am
Lowell (2/4/2009)
yep same issue as the post here:http://www.sqlservercentral.com/Forums/Topic649831-8-1.aspxi put a decent explanation and fixes there.
Top work Trinny, I was just about to post this one in.
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 4, 2009 at 8:48 am
Chuck, run a search (on this forum) on parameter sniffing. If this is the problem, which seems likely, then the solution can be pretty straightforward.
Cheers
ChrisM
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 4, 2009 at 8:39 am
Lowell (2/3/2009)
It even affects How people post, what with the Yoda grammer.
i broke down 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
February 4, 2009 at 6:36 am
david.kelly (2/3/2009)
Thanks. Life is just too short to be irritated all the time. 😛
Commendable philosophy, David. Not only that, it's now beertime! 😀
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 3, 2009 at 9:59 am
david.kelly (2/3/2009)
I believe what we are trying to discover is how do we turn off the dashed line in query...
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 3, 2009 at 9:43 am
Viewing 15 posts - 8,821 through 8,835 (of 10,143 total)