Viewing 15 posts - 3,166 through 3,180 (of 3,957 total)
R.P.Rozema (7/23/2012)
Using getutcdate() ensures that...
July 23, 2012 at 2:33 am
CELKO (7/21/2012)
Triggers are another bad code smell. It uses procedural code to fix design errors on the fly when you could not think of a declarative solution. Mother Celko's rule...
July 23, 2012 at 2:29 am
Do you mean something like this?
SELECT MatchResultMatchId
, MatchResultLicNbr
, MatchResultShirtNo
, CONVERT(VARCHAR(12), [Round]) [Round]
, Result
FROM dbo.bo_MatchResultTest
CROSS APPLY (
VALUES (1, MatchResultRoundResult1)
,(2,...
July 23, 2012 at 2:24 am
ALZDBA (7/23/2012)
Dear, Jeff, forgive me because I have sinned.
I hope you don't kick me out of the anti RBAR brotherhood.
He almost revoked my anti-RBAR card once for sinning...
July 23, 2012 at 1:04 am
CELKO (7/20/2012)
July 23, 2012 at 12:14 am
geidy_killer: Thread hijacking issues aside, you may find the information you seek in this forum post: http://www.sqlservercentral.com/Forums/Topic1332707-392-1.aspx
Look for answers in it from Kingston and me.
July 23, 2012 at 12:10 am
Canazei65 (7/16/2012)
RowIDRegisteredSpendDate FinancialYrSpendPerFinYr($) FinQtr ForecastSpendPerQtr
...
July 23, 2012 at 12:02 am
Jeff Moden (7/22/2012)
ChrisM@home (7/22/2012)
SELECT
t1.col1,
col2 = ISNULL(t1.col2, x.col2)
FROM @T t1
OUTER APPLY (
SELECT TOP 1
t2.col2
FROM @T t2
WHERE t2.col1 > t1.col1
AND t2.col2...
July 22, 2012 at 9:00 pm
Kingston's solution is true enough as it goes, but you can also assign a default constraint to the update date column and then use this whenever a row is updated.
As...
July 22, 2012 at 7:44 pm
This will also work:
create table #t1 (Invoice_no int, item VARCHAR(5), price MONEY)
insert into #t1 select 102,'#1', 6.21
union all select 102,'#2', 3.56
union all select 102,'#3', 4.28
union all select 105,'#4', 1.90
union...
July 22, 2012 at 7:38 pm
I must be missing something but I don't see how that recursive CTE (as much as I like rCTEs) accounts for the RunningTotal existing on the last record that already...
July 20, 2012 at 1:18 am
Holy One (7/18/2012)
Surely it's the Ark of the Covenant?
I agree that the Ark of the Covenant should have surely been included in my haul. Alas, my fence didn't think...
July 19, 2012 at 12:50 am
SQL PROCtologist (7/17/2012)
As a token of gratitude, feel free to add my recursive string parser to your...
July 17, 2012 at 6:46 pm
Peter H (7/17/2012)
I am looking for CTE's that will give me formulae for different predictive analysis routines.
here is a slight coding problem,...
July 17, 2012 at 6:43 pm
Steven Willis (7/17/2012)
July 17, 2012 at 6:41 pm
Viewing 15 posts - 3,166 through 3,180 (of 3,957 total)