```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.`