Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/10/2006, 14:03
Avatar de PequeñoMauro
PequeñoMauro
 
Fecha de Ingreso: abril-2006
Ubicación: Lima - Perú
Mensajes: 600
Antigüedad: 18 años, 11 meses
Puntos: 3
Entiendo. Y si lo haces asi?
Código:
select distinct valor from Tabla
where CLAVE like '%Seccion1' and R='5' and C='2'
  and plantilla='Plantilla a' and EXISTS
  (select * from Tabla
   where CLAVE like '%Seccion1' and R='2' and C='4' and plantilla='Plantilla a' and substring(valor,7,4)='2006')
__________________
"Nada en mis manos traigo tan solo a tu cruz me aferro....."