Viewing 15 posts - 6,511 through 6,525 (of 10,144 total)
Here's a wee script to get the ball rolling. No PK's / FK's yet (or even indexes), and not even fully normalised, but simple enough to use as a framework...
October 27, 2011 at 7:51 am
arslantalib (10/27/2011)
can you please give your email, so i can send you my actual data...
VSP (10/12/2011)
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...
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...
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
October 27, 2011 at 4:10 am
Gianluca Sartori (10/27/2011)
Strange coincidence!...
Nah - you're strange, I'm a coincidence ๐
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!
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...
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...
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.
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...
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...
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...
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...
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...
October 26, 2011 at 4:01 am
Viewing 15 posts - 6,511 through 6,525 (of 10,144 total)