Ver Mensaje Individual
  #16  
Antiguo 08-10-2018
orodriguezca orodriguezca is offline
Miembro
 
Registrado: ene 2009
Posts: 221
Reputación: 16
orodriguezca Va por buen camino
Yo entendí que lo que dfarias quiere es esto:

Código SQL [-]
select A.FECHA, A.HORA, A.GRUPO, A.CODIGO, A.CANTIDAD, B.GRUPO AS CODIGO_MAESTRO 
from TABLA A
inner join TABLA B 
    on B.FECHA = A.FECHA
   and B.HORA  = A.HORA 
   and B.GRUPO = A.GRUPO 
   and B.CANTIDAD = 0
Responder Con Cita