By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
source | destination |
---|---|
a | b |
b | a |
c | d |
d | c |
t1_source | t1_destination | t2_source | t2_destination |
---|---|---|---|
b | a | a | b |
a | b | b | a |
d | c | c | d |
c | d | d | c |
t1_source | t1_destination | t2_source | t2_destination | third_condition |
---|---|---|---|---|
b | a | a | b | 1 |
a | b | b | a | 0 |
d | c | c | d | 1 |
c | d | d | c | 0 |
t1_source | t1_destination | t2_source | t2_destination |
---|---|---|---|
b | a | a | b |
d | c | c | d |
source | destination |
---|---|
a | b |
c | d |