Welcome to Sign in | Help

CASE in functii Agregat

  •  01-17-2007, 3:23 PM

    CASE in functii Agregat

    Am incercat sa fac ceva de genu (Sql Server 2000):

    SELECT Sum( T.Col_x * (CASE WHEN T.Col_Y = 1 THEN 1000 ELSE 1 END)) FROM Table T insa se pare ca nu functioneaza ...

    Intrebarea e: Functioneaza CASE in functiile agregat in Sql Server 2000? daca nu exista ceva alternativa fara sa fac Sum() de mai multe Sum-uri?

View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems