Viewing 15 posts - 1,216 through 1,230 (of 6,036 total)
Solomon Rutzky (8/30/2016)
. In order to help see this, I modified one of your examples to show that the "float" value multiplied by the "term" isn't the original "amount" that...
August 30, 2016 at 1:57 am
Jeff Moden (8/29/2016)
Heh... let's hope the programmers in the IRS aren't using FLOAT to make decisions.
You better hope they do.
Why - see below.
DECLARE @Amount MONEY, @Term INT
DECLARE @fRate float, @dRate...
August 30, 2016 at 12:58 am
Jeff Moden (8/29/2016)
Normally, though, I like the code to be at least as resolute as Granny's dollar store 4 function calculator and will use a scale of at least 15.
Here...
August 29, 2016 at 9:55 pm
If there would be the same identity generated an error would happen on insert to SESSION table.
Because of a primary or unique key on the IDENTITY column in table SESSION....
August 29, 2016 at 8:18 pm
pstanislav (8/26/2016)
August 29, 2016 at 7:04 pm
That's pretty simple.
During reindexing the log grows until it runs out of free space on the disk.
Then it fails and stops.
The backup job comes couple of hours later, cleans up...
August 29, 2016 at 6:52 pm
dastagiri16 (8/27/2016)
i am getting numbers like as below,1000000017777
1000000017342
how can i remove leading 1 and zeros (10000000) and get the result like 17777
Just do what's requested:
remove leading 1
STUFF('1000000017777', 1,1,'')
and zeros
CONVERT(int, STUFF('1000000017777',...
August 29, 2016 at 6:36 pm
To make it really painful:
DECLARE @Amount MONEY, @Term INT
DECLARE @fRate float, @dRate decimal (38,28)
SELECT @Amount = 1000000, @Term = 17*3*13*7*19*23*43*11
SELECT @fRate = CONVERT(FLOAT, @Amount)/@Term,
@dRate = CONVERT(DECIMAL(38,28), @Amount)/@Term
SELECT @fRate [@fRate], @fRate...
August 29, 2016 at 6:05 pm
Jeff Moden (8/29/2016)
Someone would have to prove that one to me, Sergiy.
It took 2 minutes:
DECLARE @Amount MONEY, @Term INT
DECLARE @fRate float, @dRate decimal (38,10)
SELECT @Amount = 1000000, @Term =...
August 29, 2016 at 4:54 pm
roy.tollison (8/29/2016)
this gives me something to work with thanks...
What do you want to work on?
You've been given the solution.
All you need to do is to translate it into SQL.
EzipayEmailList
1. "...
August 29, 2016 at 4:46 pm
Jeff Moden (8/29/2016)
vdiazh (8/28/2016)
Is great, thanks
I hope you're not using the FLOAT version. FLOAT is a binary "approximation" of numbers and it the scale varies according to how many...
August 29, 2016 at 7:26 am
roy.tollison (8/28/2016)
I am needing a way to query the table to only get all the rows until a 'B' type is found
Assuming the order of rows is defined by auto-incremental...
August 29, 2016 at 12:32 am
paulo.margarido (8/25/2016)
ok, now can we go back to the discussion?
Here is what solves your problem.
SELECT h.Date
FROM dbo.Holidays h
WHERE Territory = @Territory
AND Level = @Level
AND Date >= DATEADD(YY, DATEDIFF(YY, 0,...
August 26, 2016 at 2:09 am
ChrisM@Work (8/25/2016)
August 25, 2016 at 5:40 am
ChrisM@Work (8/24/2016)
paulo.margarido (8/24/2016)
what i ask is how can i do it that way
if...
August 24, 2016 at 10:25 pm
Viewing 15 posts - 1,216 through 1,230 (of 6,036 total)