Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/12/2009, 17:06
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Pregunta básica de consulta SQL

Como te ha sugerido abimaelrc, con distinct dentro del count
select count(distinct alumnos) as cantidad from rubros_alumnos where rubro = 36 or rubro = 45

pruébalo.