Forum Replies Created

Viewing 15 posts - 16 through 30 (of 133 total)

  • Reply To: Adding Sum to Variables

    Here is an example. The last six digits of the GL Account number represent Region/Division. The first matrix totals the 5 series GL Accounts. The second matrix actually has a...

  • Reply To: Adding Sum to Variables

    I posted and now I don't see it???

  • RE: Update Trigger

    ScottPletcher - Monday, April 9, 2018 3:39 PM


    SET ANSI_NULLS ON;
    SET QUOTED_IDENTIFIER ON;
    GO
    CREATE TRIGGER udLaborTracking__TRG_UPD_Set_LastJob
    ON dbo.udLaborTracking
    AFTER UPDATE
    AS
    SET NOCOUNT ON;
    IF UPDATE(Job)
    BEGIN
      UPDATE...

  • RE: Update Trigger

    sgmunson - Monday, April 9, 2018 6:27 AM

    Unfortunately, you missed his point entirely.   The structure you have only allows for the...

  • RE: Update Trigger

    Thank you, I think I'm going to give this a try.
    I was curious, not being as familiar with the coding, why does the update need to address the alias...

  • RE: Update Trigger

    Grant Fritchey - Friday, April 6, 2018 10:10 AM

    Ken at work - Friday, April 6, 2018 9:59...

  • RE: Update Trigger

    I'm not sure I'm following.  The Job and LastJob are not keys.  The primary Keys are Company and Employee
    There will always be only one Employee (it can never be...

  • RE: Merging Data from two tables.

    I was wondering about the Row Number or something else being needed.  That is why I couldn't get it to work at the start.  I've started reading up on the...

  • RE: Merging Data from two tables.

    Could I have used a regular join and ph.EffectiveDate <= tc.DateWorked, which I also didn't think of?

  • RE: Merging Data from two tables.

    Amazing!
    I've never used Cross Apply.  I have to do some reading up on that.

    Thank you very much for your help,

  • RE: Trigger help

    Good point. I don't see it as a Primary/Foreign key combination.  So there must be a constraint as I cannot add equipment to the history table that doesn't ready exist...

  • RE: Trigger help

    Chris Harshman - Thursday, March 9, 2017 2:44 PM

    I have 2 comments offhand, I imagine you want the SET...

  • RE: Using IN in a Where statement with and option of all

    Thom A - Wednesday, February 8, 2017 4:47 PM

    Ken at work - Wednesday, February 8, 2017 12:30...

  • RE: Using IN in a Where statement with and option of all

    For me, I am not using the Split Function.

    Normally I only use the Where 'Something' IN (@Variable). Everything is good. The using can 'Select All' or any number...

  • RE: Using IN in a Where statement with and option of all

    It seems to fail if:
    A) I use the TS.Skill In as part of an OR or Case statement in the Where and
    B) The user selects more than one skill.

Viewing 15 posts - 16 through 30 (of 133 total)