Viewing 15 posts - 4,636 through 4,650 (of 5,109 total)
This gives the logic you asked for, however, not the expected results, for example i do not get the following value:
Source Target StartDate EndDate
-------...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 23, 2016 at 3:22 am
You haven't actually asked a question here. What are you trying to achieve (yes I know you've given expected results, but how do you get these)?
Without knowing what you're trying...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 23, 2016 at 2:14 am
greeshatu (12/23/2016)
That is what I exactly want . Could pls help me out
Actually My data will be huge So When I use the...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 23, 2016 at 1:53 am
Have a look at Understanding the OVER clause[/url], which explains the ROWS BETWEEN clauses.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 9:06 am
Fully Windowed, and VALID included.
WITH CTE (EVENT_ID, EVENT_RANK, MIN_AGE, MAX_AGE, C_MIN, C_MAX) AS
(
SELECT A.EVENT_ID,
A.EVENT_RANK,
A.MIN_AGE,
...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 8:32 am
olibbhq (12/22/2016)
I will try this with a larger dataset and see how it gets on.
I am curious you moved away from windowing to joining...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 8:21 am
This gives me the right results, however, this is quite a small dataset, you might want to check on others.
Also, what is the logic for VALID? I have omitted this...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 8:05 am
olibbhq (12/22/2016)
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 7:54 am
For those that can't see the image above.
SELECT 1205, 1 AS EVETN_RANK, NULL as MIN_AGE, 55 AS MAX_AGE, NULL AS RUNNING_MIN, 55 AS RUNNING_MAX, 1 AS VALID
UNION
SELECT 1205, 2,...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 7:46 am
Can we get some expected results? This gives me a right result at the end, but i'm pretty sure EVENT_RANK 3 is wrong with a C_MIN of 23, and a...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 7:30 am
Considering that your error is "Invalid object name 'XYZTable'" this sounds like either a permissions error, or the statement is pointing the the wrong database/schema.
If you're object names are different...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 5:22 am
nadersam (12/22/2016)
My question is if one of the SQLs contained a semicolon i guess it will mess up the execution right?Thanks Nader
Semicolons won't be a problem at all (notice that...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 4:57 am
Jim-S (12/22/2016)
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 4:50 am
You'll find it unlikely that anyone will be happy to open that RAR file of yours, as we don't know what's contained inside it (especially as many of us browse...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 4:32 am
This is not dynamic, if you have more than just products A, C, P and NULL, but as I said above, I have little information to go on. if you...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
December 22, 2016 at 4:18 am
Viewing 15 posts - 4,636 through 4,650 (of 5,109 total)