Forum Replies Created

Viewing 4 posts - 46 through 49 (of 49 total)

  • RE: Suggestion for Query

    Try this Bob.

     

    SELECT

        [USERNAME],

        SUM(CASE WHEN [STATE] = 'TX' THEN 1 ELSE 0 END) 'TX',

        SUM(CASE WHEN [STATE] = 'NM' THEN 1 ELSE 0 END) 'NM',

        SUM(CASE WHEN [STATE] =...

  • RE: Stored Procedure column names

    Thanks. 

  • RE: how do i build this query?

    SELECT   GroupCode,COUNT(*) as myCount,

       SUM(CASE WHEN Compliant = 'T' THEN 1 ELSE 0 END ) AS Compliant

    FROM      myTbl

    GROUP BY  GroupCode

  • RE: Fixing SysDepends

    Still evaluating, but certainly looks promising. 

    Wish List:

    Ability to rearrange objects.

    Sent to file or printer.

     

     

Viewing 4 posts - 46 through 49 (of 49 total)