Tema: Consulta SQL
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/02/2012, 19:20
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 18 años, 9 meses
Puntos: 39
Respuesta: Consulta SQL

Prueba asi:
Código SQL:
Ver original
  1. SELECT h.*, t.fecha, t.cliente
  2. FROM horarios h
  3. LEFT JOIN turnos t ON h.hora = t.hora AND t.empleado = 1
__________________
No repitamos temas, usemos el Motor de busquedas
Plantea bien tu problema: Ayúdanos a ayudarte.