Ver Mensaje Individual
  #6 (permalink)  
Antiguo 17/02/2012, 12:05
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Condicion where complicada

Perdona, LENINCASCO,
no sabía que seguías en este post.

Código MySQL:
Ver original
  1. select cod1,count DISTINCT (cod2) valor from tabla3 where cod2 in ('1','2','3')
  2. group by cod1 having valor=3