3
I have a table where I cross exchange data of some professionals, For example, prof A has in common the exchange with prof F, so F has with A as well. But in the permutation report I would not like to show F with A, only A with F, because the information itself is the same thing in practice, although in the bank are different records.
How do I make an SQL that meets this my condition?
For example, Fábio works at UBS Center and wants to move to UBS Anchieta, Anderson works at UBS Anchieta and wants to move to UBS Center. The two register in the Exchange System, in the bank there are the two recorded records, name / origin / option Fábio UBS Centro UBS Anchieta Anderson UBS Anchieta UBS Center
In the report appears: Fabio wants to exchange with Anderson Anderson wants to exchange with Fabio
This duplicity in the report is not necessary.
If they’re the same thing, there should be separate records?
– Woss
Woss, it got a little confusing, but I updated the question. Thank you man.
– Fábio Martins