Ver Mensaje Individual
  #8 (permalink)  
Antiguo 05/03/2008, 15:20
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Problema con SELECT y GROUP BY

Entonces hazlo mas sencillo, primero selecciona el turno de la mañana y luego el de la tarde, asi puedes imprimir dos listas:
Código:
SELECT Fecha, COUNT(*) as Total FROM Registro WHERE MañanaTarde='Mañana' GROUP BY Fecha ORDER BY Fecha
SELECT Fecha, COUNT(*) as Total FROM Registro WHERE MañanaTarde='Tarde' GROUP BY Fecha ORDER BY Fecha
Saludos.