where is the solution:
You have table A, so copy the entire table in another table. Table B.
so Table A=Table B (only in data no constrains)
then [id]=id you want to search
select B.cod,count(*) entrysA from A,B where
group by B.cod
having entrysA=(select count(*) from A where cod= [id])
The first colum are your id´s solutions and the second colums the amount of
rows per Id.
I hope I help....nice problem... I did it with a friend...
Roberto Zárate Mendoza
Student of systems engineering
Facultad de Ingenieria Industrial y Sistemas
Universidad Nacional de Ingenieria - Lima, Peru