Ver Mensaje Individual
  #3  
Antiguo 15-06-2011
Avatar de defcon1_es
defcon1_es defcon1_es is offline
Miembro
 
Registrado: mar 2004
Ubicación: Cuenca - España
Posts: 533
Reputación: 21
defcon1_es Va por buen camino
Se me adelantó Caro

Código SQL [-]
Select Count(cliente) as cant 
From (Select DISTINCT cliente From tabla Where estatus='D' group by cliente)

La solución que da Caro es perfectamente válida, pero yo le pondría la condición DISTINCT.
__________________
Progress Openedge
https://abevoelker.com/progress_open...dered_harmful/


Delphi forever...
Responder Con Cita