Ver Mensaje Individual
  #4  
Antiguo 16-01-2008
espericueta espericueta is offline
Miembro
 
Registrado: ene 2008
Posts: 13
Reputación: 0
espericueta Va por buen camino
isnull

no se que manejador utilices en sql server se puede utilizar esta funcion
isnull

Código SQL [-]
Q_tot_12.SQL.Text:='select isnull(sum(subcondesc),0)as imp12  from fact where esquema=1 ';
Q_tot_12.Active:=true;

Q_tot_15.SQL.Text:='select isnull(sum(subcondesc),0)as imp15  from fact where esquema=3 ';
Q_tot_15.Active:=true;
Responder Con Cita