Viewing 15 posts - 5,716 through 5,730 (of 13,468 total)
rounding inside the sum can lead to some varying results;
look at this based on your sample data...the rounding to money is quite a bit different.
/*4470487.674470487.76384470487.66999997*/
select SUM(convert(decimal(10,2),number,2)),
SUM(convert(money,number,2)),
sum(round(number,2))
from #temp
March 23, 2012 at 1:48 pm
I had a requirement like that, and I generated the reports separately,and then used pdfmergerSB545.jar to join multiple PDF's together; in that way, i was able to get some reports...
March 23, 2012 at 1:16 pm
nathan 7372 (3/23/2012)
I'm experiencing some unexpected behavior using rounds and sums on a floating point column. This is my query.
SELECT
sum(round([Refund],2))
FROM [MyDatabase].[TotalRefunds]
The...
March 23, 2012 at 1:12 pm
the spaces in the file names makes it hard to do also;
i tried splitting the data on the slahses, and i'm not getting all teh possible results so far.
with mySampleData(id,val)
AS
(
SELECT...
March 23, 2012 at 12:25 pm
pragyan.banerjee (3/23/2012)
Hi,This is the exact error I am getting
Server: Msg 8115, Level 16, State 2, Procedure dateadd1, Line 13
Arithmetic overflow error converting expression to data type datetime.
if that inner function...
March 23, 2012 at 11:53 am
i found some interesting stuff about service queues not having a unique GUID over here:
I know i've had a situation a couple of times where the service just doesn't seem...
March 23, 2012 at 9:48 am
I believe you are incorrect; the default state would be INACTIVE unless you query the queue at teh exact moment you are actually sending an email.
all four of my servers...
March 23, 2012 at 8:59 am
there's a very complete, once again free Canadian postal database here:
March 23, 2012 at 8:01 am
here's a free copy of mine; it's the CREATE TABLE and INSERT INTO statements i've psoted here on SSC a few times.
it is based on a formatted version of this...
March 23, 2012 at 7:47 am
well, you can sue CTE's instead of temp tables, but i'm not sure how much simpler that is..it is the same query, different format.
DECLARE @KeyDoc int;
WITH freesiteaccess
AS
(
SELECT DISTINCT x0_0.keydoc,...
March 23, 2012 at 7:29 am
patrickmcginnis59 (3/23/2012)
itskanchanhere (3/23/2012)
new project, need to instal it first before trying
awesome linky Patrick, thank you! 😀
March 23, 2012 at 7:06 am
Fear Naught (3/23/2012)
March 23, 2012 at 5:57 am
rpnew (3/22/2012)
March 22, 2012 at 1:39 pm
take a look at this example;
what you are asking is possible by getting the data using XML;
Select Row_Number() Over(Order By is_linked, name) % 2 As [TRRow],
...
March 22, 2012 at 12:44 pm
i would agree; an error in the trigger could prevent data from being inserted;
cross-database data migration does not belong in a trigger.
an outside process could error out, but the next...
March 22, 2012 at 11:47 am
Viewing 15 posts - 5,716 through 5,730 (of 13,468 total)