Ver Mensaje Individual
  #7 (permalink)  
Antiguo 09/06/2010, 11:39
CyberPolin
 
Fecha de Ingreso: junio-2010
Mensajes: 4
Antigüedad: 13 años, 11 meses
Puntos: 0
Respuesta: Lío con consulta SQL: sum, Group by

SELECT *,SUM(precio) AS precioT FROM ventas WHERE habitacionId = '3'
GROUP BY horaEntrada