Skip to main content
se añadieron 3 caracteres en el cuerpo
Origen Enlace
```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.`
`SELECT *
```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.`
```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.`
`SELECT *
```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.`
se eliminaron 3 caracteres en el cuerpo
Origen Enlace
```-FROM```FROM Table t, TableCompare tc1, TableCompare tc2, Table3 t3
```-WHERE```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.`
```-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.`
```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.`
Origen Enlace

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