Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)

  • RE: Query optimation help

    Hope this helps. The indents are where they are supposed to be indented. I will attach some sample data for you to use shortly.

    Unique ID ...

  • RE: Query optimation help

    Close but your using the CurrentProcessStepID as the level guage. There may be more then one CurrentProcessStep of Sort (2) so this would not allow the higharchy to match...

  • RE: Query optimation help

    Spoke to soon.

    There is one minor issue. Once again the UniqueID in not important just that it be unique and the Level is linked to the Parent UniqueID with...

  • RE: Query optimation help

    The current process step really has no function in the sort except in the following situation.

    Recieving

    Sort

    Teardown

    Recycling

    Test & Diagnostics

    ...

  • RE: Query optimation help

    The level indicates that how far down the process it is.

    So for example

    Recieving Level null

    Sort Level 1

    Tear Down Level 1

    ...

  • RE: Query optimation help

    It's the primary key from my tree view in the jpg above.

    This has to be unique but can be any value.

  • RE: Query optimation help

    After thinking about this more last night is it even possible to get the level and UniqueID to function as they do in the correct results above.

    I'm having...

  • RE: Problem Declaring variables inside a Trigger

    The issue is with the last line of code.

    SET @WorkingDays=(([@MonthDays]-([@LWOP]+[@Absent]*(2)))-((([@CasualLeave]+[@CompensatoryLeave])+[@DutyLeave])+[@VacationLeave]))

    Remove the brackets [ ] around the variable names.

    SET @WorkingDays=((@MonthDays-(@LWOP+@Absent*(2)))-(((@CasualLeave+@CompensatoryLeave)+@DutyLeave)+@VacationLeave))

  • RE: Query optimation help

    Thanks for your help. Everything works but one thing. I need the Level to show the results from attached results.xls file. I have your query and mine...

  • RE: Query optimation help

    I have added the sample output and dummy data that can be used. When you run the stored proc you can use

    EXEC GetCategoryList @LotNumber=30447

    I have also changed the rar...

  • RE: Query optimation help

    Sorry about that I have added the supporting documentation. If there is anything else you need from me please let me know. My clients is freaking out.

    Thanks,

Viewing 11 posts - 1 through 11 (of 11 total)