Ver Mensaje Individual
  #2  
Antiguo 22-08-2007
[basti] basti is offline
Miembro Premium
 
Registrado: ago 2004
Posts: 388
Reputación: 20
basti Va por buen camino
Algo así:

Código SQL [-]
select first 1 (select count(*) from padron_2004 where substring(cve_elector from 15 for 1) = 'H') as hombres, 
                  (select count(*) from padron_2004 where substring(cve_elector from 15 for 1) = 'M') as mujeres 
         from padron_2004
Responder Con Cita