Viewing 15 posts - 196 through 210 (of 562 total)
It would be something more like, at least the month and year...
January 20, 2017 at 3:35 am
Can you post the table sizes ?
I do not understand the construction around Table_G.
This looks 'nondeterministic' which could cause problems. The number of different results that this subquery...
January 20, 2017 at 2:52 am
All thanks for your effords.
But for a number of purposes I do prefer the information_schema. Especially when advising to college's.
It is less comprehensive and therefore easier to...
January 17, 2017 at 3:03 pm
January 16, 2017 at 6:34 am
While running the query on different months work fine but not running on 31-December-2016 ,please...
January 13, 2017 at 2:06 am
January 12, 2017 at 8:27 am
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
Viewing 15 posts - 196 through 210 (of 562 total)