Viewing 15 posts - 6,511 through 6,525 (of 10,143 total)
arslantalib (10/27/2011)
can you please give your email, so i can send you my actual data...
VSP (10/12/2011)
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
October 27, 2011 at 6:14 am
Gianluca Sartori (10/27/2011)
ChrisM@Work (10/27/2011)
Gianluca Sartori (10/27/2011)
ChrisM@Work (10/27/2011)
Gianluca Sartori (10/27/2011)
Strange coincidence!...
Nah - you're strange, I'm a coincidence 😛
:hehe: Quite right.
Had to post - now we're even again
It's an inglorious battle for...
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
October 27, 2011 at 4:49 am
This is probably more efficient:
SELECT
O.OrderID,
l.StatusID,
l.StatusDate
FROM Orders O
INNER JOIN (
SELECT *, rn = ROW_NUMBER() OVER(PARTITION BY OrderID ORDER BY StatusDate)
FROM OrderStatusLog
) l ON l.OrderID = o.OrderID AND l.rn...
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
October 27, 2011 at 4:49 am
Gianluca Sartori (10/27/2011)
ChrisM@Work (10/27/2011)
Gianluca Sartori (10/27/2011)
Strange coincidence!...
Nah - you're strange, I'm a coincidence 😛
:hehe: Quite right.
Had to post - now we're even again
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
October 27, 2011 at 4:10 am
Gianluca Sartori (10/27/2011)
Strange coincidence!...
Nah - you're strange, I'm a coincidence 😛
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
October 27, 2011 at 3:55 am
Jim Murphy (10/26/2011)
... Aaahhh. It's sweet. Now I can grant permissions to both my wife (at home), and my receptionist (at work)...Jim
What!!! How rude!
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
October 27, 2011 at 2:14 am
Here's the OUTER APPLY version Remi's talking about. It's cleaner, easier to read, and likely to be more performant:
SELECT m.LastName,
p.PledgeTotalPerIndividual,
ps.LTVTotalPerIndividual,
ps.RoRTotalPerIndividual,
t.OfferingTotalPerIndividual,
t.TitheTotalPerIndividual,
t.SeedOfferingPerIndividual
FROM dbo.Members AS m
OUTER APPLY (SELECT...
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
October 26, 2011 at 7:42 am
Ninja's_RGR'us (10/26/2011)
ChrisM@Work (10/26/2011)
SaintGr8 (10/26/2011)
Hello!Please run the queries below to get along....
Your script has numerous faults - I'm sure if you fix them and repost, it won't take long to solve...
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
October 26, 2011 at 6:43 am
SaintGr8 (10/26/2011)
Hello!Please run the queries below to get along....
Your script has numerous faults - I'm sure if you fix them and repost, it won't take long to solve 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
October 26, 2011 at 6:34 am
L' Eomot Inversé (10/26/2011)
Do we have a would-be Celko here? A somewhat style-less and inept one, perhaps, but...
Celko's less personally offensive. This guy would benefit from a warning shot...
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
October 26, 2011 at 6:28 am
clarmatt73 (10/26/2011)
FROM [Transaction] Payments
INNER JOIN Debt ON Debt.DebtCode = Payments.TransactionDebtCode
IF @JointDebtor = 'Yes'
(INNER JOIN DebtDebtor ON DebtDebtor.DebtCode=Debt.DebtCode AND DebtDebtor.DebtorLinkId=ISNULL(TransactionDebtorLinkId,(SELECT MIN(DebtDebtorID) FROM DebtDebtor 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
October 26, 2011 at 5:59 am
clarmatt73 (10/26/2011)
(Case When @parameter = 'Yes' THEN
INNER JOIN Table2 ON Table2.DebtCode=Table1.DebtCode AND Table2.DebtorLinkId=ISNULL(TransactionDebtorLinkId,(SELECT...
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
October 26, 2011 at 5:16 am
clarmatt73 (10/26/2011)
I have been asked to alter one of our reports so that the end users can select whether to include certain data. The data can only be extracted...
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
October 26, 2011 at 4:38 am
Brandie Tarvin (10/25/2011)
...So I went with the newly unveiled (as of Sunday), HTC Evo Design.
I've had two HTC phones, the XDA and the XDA IIs. Both performed really well 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
October 26, 2011 at 4:01 am
GilaMonster (10/24/2011)
ChrisM@Work (10/24/2011)
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
October 26, 2011 at 2:18 am
Viewing 15 posts - 6,511 through 6,525 (of 10,143 total)