Viewing 15 posts - 196 through 210 (of 557 total)
January 12, 2017 at 7:15 am
ben.brugman (1/6/2017)
Jason A. Long (1/5/2017)If I'm understanding correctly, the objection is that the "obliterated" rows are...
January 12, 2017 at 6:56 am
Eirikur Eiriksson (1/10/2017)
You will have to elaborate further on the requirements, UTF-8 is unicode hence multi byte!
😎
Oops, my bad, I want an 8 bit character set and not a 2...
January 10, 2017 at 7:49 am
Jason A. Long (1/5/2017)
If I'm understanding correctly, the objection is that the "obliterated" rows are displaying the "MaxPrevEnd" values in the NewBeg & NewEnd columns, rather than the original EndDate.
Sorry,...
January 6, 2017 at 8:33 am
--============================================================================
-- The actual solution... (Based on the solution given by Jason A. Long, thanx).
-- Adapted to the example.
-- Corrected for : 1 Enddate does not change.
--...
January 5, 2017 at 8:37 am
Jason A. Long (12/22/2016)
-- Setup some test data...
IF OBJECT_ID('tempdb..#TestData', 'U') IS NOT NULL...
January 5, 2017 at 7:20 am
Jason A. Long (12/22/2016)
Here's what the solution looks like laid out graphically in Excel (note: I change a few dates to compact the ranges...)
Exactly what was asked, thank you.
I am...
December 23, 2016 at 9:42 am
Sergiy (12/22/2016)
Can you post your TestTable definition?
The testtable definition was in the post before my previous post.
At the start of that code the text is : -- ...
December 23, 2016 at 9:37 am
Sergiy (12/20/2016)
SELECT ID, FromValue, ToValue
INTO #Periods
FROM (
SELECT 1, 2.1, 8.0
UNION
SELECT 2, 3., 4.5
UNION
SELECT 3, 4., 10.
UNION
SELECT 4, 9., 20.
) I (ID, FromValue,...
December 22, 2016 at 9:03 am
All thanks for your time and attention.
I started of with the post:
http://www.sqlservercentral.com/Forums/Topic1760478-3412-1.aspx
And tried to construct a solution from the solution presented there.
That was a bad idea. Spend some time on...
December 22, 2016 at 8:57 am
drew.allen (12/20/2016)
December 22, 2016 at 8:27 am
BrainDonor (12/1/2016)
I wrote a small series on isolation levels a while back, so I could understand how they worked.Start at http://wp.me/p3Vxvi-8R and see if they help.
Yes this does help. Thanks.
Although...
December 2, 2016 at 1:59 am
GilaMonster (12/1/2016)
Repeatable read vs read committed: can two identical selects within...
December 1, 2016 at 8:36 am
ChrisM@Work (10/21/2016)
The guesses made by the optimiser are whacked somewhat by the ranges.
Yes they are WHacked.
Try forcing a loop join reading first from the ranges table like this:
SELECT *
FROM...
October 24, 2016 at 4:04 am
Here is a 'fairly' simple solution to your problem.
First a table is 'created' which contains the totals for each column.
Then this table is used to calculate the percentages for all...
October 21, 2016 at 6:51 am
Viewing 15 posts - 196 through 210 (of 557 total)