Viewing 12 posts - 196 through 207 (of 207 total)
Andrew Watson (12/17/2008)
December 17, 2008 at 6:11 am
Cool...
I'm curious, how does that checksum work?
December 15, 2008 at 1:32 pm
Paul Randal (12/14/2008)
December 15, 2008 at 6:01 am
I could be wrong here... but...
Somehow you have an index on a computed column that is guaranteed to give a arithmetic overflow error.
For an index on a computer column...
December 15, 2008 at 5:57 am
george sibbald (12/14/2008)
[ObservanceID] [bigint] NOT NULL ,
[ObservanceTime] [datetime] NOT NULL ,
[ObservanceType] [tinyint] NULL ,
[SecChkID] [int] NULL ,
[SensorID] [int] NOT NULL ,
[SourceID] [int] NOT NULL ,
[TargetID] [int] NOT...
December 15, 2008 at 5:35 am
henrik staun poulsen (12/9/2008)
Well, I've seen worse; like the programmer that loved to write "BEGIN TRAN", but forgot a few "COMMIT" or "ROLLBACK".
And this system actually works, and makes...
December 9, 2008 at 5:43 am
ramadesai108 (11/14/2008)
Now the following statement works fine but it produces number of digits to the right of the decimal:
CAST(ROUND((((t.ItmRecvdYR1 - t.ItmRecvdYR2)/(t.ItmRecvdYR1 * 1.0)) * 100),0)...
November 14, 2008 at 8:16 pm
Chirag (11/11/2008)
ta.bu.shi.da.yu (11/11/2008)
Chirag (11/10/2008)
You do not store either credit or debit values as negative becoz u need to take these values and show them in various reports .This would need...
November 12, 2008 at 2:41 am
Lynn Pettis (11/7/2008)
GilaMonster (11/6/2008)
You're dividing by t.SoldYR1 in the code that works and t.SoldYR2 in the code that doesn't. Are there any rows where t.SoldYR2 is 0?
Better question, are there...
November 11, 2008 at 2:50 am
What if SoldYR1 is 0 and SoldYR2 is a negative value?
SoldYR1 = 0
SoldYR2 = -1
Thus:
(t.SoldYR1 - t.SoldYR2)/(t.SoldYR1 * 1)
becomes:
(0-(-1))/(0 * 1)
Divide by zero.
November 11, 2008 at 2:48 am
Chirag (11/10/2008)
You do not store either credit or debit values as negative becoz u need to take these values and show them in various reports .This would need multiplying with...
November 11, 2008 at 2:36 am
Evidently never heard of twos compliment.
As Lynn Pettis wrote:
"Not all credits are negative. It depends if they are expenses, liabilities, or assests."
Thus it makes no sense not to...
November 11, 2008 at 2:33 am
Viewing 12 posts - 196 through 207 (of 207 total)