Skip to main content
2 de 3
se eliminaron 3 caracteres en el cuerpo
```FROM Table t, TableCompare tc1, TableCompare tc2, Table3 t3
```WHERE 
    t.FKt1 = tc1.pk and
    tc2.FKt3 =tc1.FKt3 and 
    tc1.PkId<> tc2.PkId  and
    t3.PkCode=t3.PkCode

assuming:

````Table t have a FK from TableCompare. FKt1 is FK of TableCompare PK`
````TableCompare have a FK from Table3. FKt3 is FK of Table3 PKCode.`