• You are right, (I probably need to sleep more) 🙂

    A corrected version is:

    DATEPART( wk, '3/12/2007' ) + (DATEPART( yyyy, '3/12/2007' )-1950) * 53

    (the *53 should be on the year :), deducting 1950 will make the numbers even smaller)

    Thanks,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software