Forum Replies Created

Viewing 2 posts - 1 through 3 (of 3 total)

  • RE: basic sql question

    Luis Cazares (7/24/2013)


    I believe this option is better for performance.

    SELECT ID,

    SUM( CASE WHEN Type = 'a' THEN Amount ELSE 0 END) AS Amount_A,

    ...

  • RE: basic sql question

    Koen Verbeeck (7/24/2013)


    Welcome to the forum!

    Thank you for your quick answer, which definitely made me feel welcome. And even better, appears to work.

    On a sidenote: maybe for your next...

Viewing 2 posts - 1 through 3 (of 3 total)