Hola Josep.
Substitueix :
Código SQL [-]COUNT(A.TIPUS_GESTIO) AS CANTITAT
Per :
Código SQL [-]sum(case when A.TIPUS_GESTIO = 'P' then 1 else 0 end) as QUANTITAT_P
Salutacions.
__________________
Marc Guillot (Hi ha 10 tipus de persones, els que saben binari i els que no).
Última edición por guillotmarc fecha: 29-03-2011 a las 11:26:33.
|