Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/08/2015, 12:43
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Número de consultas total de hoy por hotel

Código MySQL:
Ver original
  1. --total de registros por una fecha--
  2. select count(*) from tabla1 as t1
  3. left join tabla2 as t2 on (t1.id=t2.id)
  4. where tabla1.fecha between fecha_inicial and fecha_final
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me