Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)

  • RE: Aggregating query help

    Hi Aaron,

    I meant to say that given a route, you would have to travel all points listed in the route. So, in the example A -> B, B -> C...

  • RE: Aggregating query help

    Dude you're awesome!

    The modified queries now works for the scenarios I described.

    I will apply the queries to some real data and see how that goes as well as try to...

  • RE: Aggregating query help

    Ok,

    To test the scenario that route 1 and route 2 start at the same origin but finish at different desitionations:

    insert into #Trips values (1,'ReturnTrip','A','B')

    insert into #Trips values (1,'ReturnTrip','B','C')

    insert into #Trips...

  • RE: Aggregating query help

    Sorry posted twice, thought I'd lost the 1st reply...

  • RE: Aggregating query help

    There are possibilities I think that it may fail if a return route doesn't exactly retrace the same steps, especially if it is through different way points. That may end...

  • RE: Aggregating query help

    There are possibilities I think that it may fail if a return route doesn't exactly retrace the same steps, especially if it is through different way points. That may end...

  • RE: Aggregating query help

    Wow thanks for the query dwain,

    it seems to work beautifully!

    I'm just going to play around with some other scenarios that I've found with the data I'm given.

    It seems that...

  • RE: Aggregating query help

    Thanks aaron,

    Yes I fogot to include a vital column Direction which would indicate whether the journey was an Inbound or an Outbound.

    So the code should look like this:

    create table test.elogen

    (

    ID...

  • RE: Trying to improve query, strange execution plan

    Thanks Paul, adding HASH to the left outer joins did indeed result in the double bitmap plan and also forces the order of the joins.

    Cheers.

  • RE: Trying to improve query, strange execution plan

    Well what do you know, the inline string split has resulted in a parallel execution plan!

    Here is my query:

    SELECT

    CASE WHEN Link.ProcessType = 'D' THEN (SELECT ExecutionTime FROM MARSX.dbo.[DelimitedSplit8K](AI.LoadExceptionsFileName, '|')) END...

  • RE: Trying to improve query, strange execution plan

    Thanks for the suggestion, but I think that my problem doesn't actually have anything to do with how I've defined my function.

    For example, I tried redefinig the ufn as:

    ALTER FUNCTION...

  • RE: Table Valued Functions and Repeatable Reads

    Thanks again Paul for the detailed explanation.

    You're exactly right, my problem really had nothing to do with isolation levels and was more to do with the inefficiency of how I...

  • RE: Table Valued Functions and Repeatable Reads

    Thanks Paul for your answer and the link.

    I guess what I need for my purposes is to set the isolation level to SNAPSHOT since my function will actually be a...

  • RE: Cursors and concurrency

    Hi Paul,

    I've just tried your code, and yes it's returning..I missed the BREAK part....

    thanks

  • RE: Cursors and concurrency

    Thanks for the suggestions guys,

    but I'm wondering with the WHILE 1 = 1 method, wouldn't this mean that once the stored procedure is called, it would never return? So would...

Viewing 15 posts - 1 through 15 (of 17 total)