Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/05/2009, 00:48
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 17 años
Puntos: 300
Respuesta: Como contabilizar las filas

Esto te dará también el total:
Código sql:
Ver original
  1. SELECT COALESCE(horario,'TOTAL'), COUNT(horario) FROM `tabla` GROUP BY horario WITH ROLLUP