Forum Replies Created

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

  • RE: Sql Query Whats wrong?

    Thank you, i think i am losing my skills!! 🙂

  • RE: TSql help

    Thank you my friend this works perfectly.

  • RE: Tricky Select statement

    the values 888,123 etc... we have about 100,000 distinct values, so that way will not work.

  • RE: Security troubles

    I have resolved this problem by giving the report only a permission of "everyone" and setting the url to the report directly.

  • RE: Date conversion help

    Thank you both.

  • RE: Divide by 0 Error

    Garadin (4/12/2011)


    Replace

    SUM(trxquantity) / SUM(trxcount) AS [UPT]

    WITH

    CASE WHEN SUM(trxcount) > 0 THEN SUM(trxquantity) / SUM(trxcount) ELSE 0 END AS [UPT]

    Thank you this worked perfectly !!

  • RE: Dynamic Update

    GSquared (1/31/2011)


    What defines an "empty target"?

    You're giving WAY too little data here to be able to help you on this.

    a "NULL" defines an empty target

  • RE: SQL "CASE" Help

    Thank you for the person who gave me the answer;

    SUM(CASE WHEN Department in ('SOUH', 'DIAM', 'JEWR') THEN TrxFullPrice

    ELSE 0

    END) AS SOUH

  • RE: SQL "CASE" Help

    No this will not work.

    maybe doing a union on separate case statements?

  • RE: Need help with Null rows

    GSquared (10/21/2010)


    Why are you using a subquery for the final column? Why not just move "where i.[record type] = 'overall'" into the Where clause of the main query?

    That was...

  • RE: Need Help !!!

    I believe i got the answer.

    I do not know why this works but by placing the SLPRSNID = '104' instead of 104 works !!

    Thanks !!

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