Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/08/2016, 07:51
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 3 meses
Puntos: 360
Respuesta: Como ordenar por nombre del mes

Intenta haciendo order by asi:
Código SQL:
Ver original
  1. SELECT to_char(fechaTimeStamp, 'Month'), SUM(valor)
  2. FROM tabla
  3. GROUP BY 1
  4. ORDER BY  TO_NUMBER(to_char(fechaTimeStamp, 'MM')) ASC
__________________
Without data, You are another person with an opinion.
W. Edwads Deming