Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/02/2011, 08:10
quimfv
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Sabadell
Mensajes: 4.897
Antigüedad: 16 años, 11 meses
Puntos: 574
Respuesta: Ayuda con consulta

Select * from tablafacturas order by year(fecha_emision),month(fecha_emision),fecha_emi sion;

Select * from tablafacturas where year(fecha_emision)=2011 and month(fecha_emision)=1 order by year(fecha_emision),month(fecha_emision),fecha_emi sion;
__________________
Quim
--------------------------------------------------
Ayudar a ayudar es una buena práctica!!! Y da buenos resultados.